/* ================================================
   COCO AURA - MAIN STYLESHEET
   Color Scheme: Rose Quartz & Serenity
   ================================================ */

/* CSS Variables (Colors & Theme) */
:root {
    --rose-quartz: #F7CAC9;
    --serenity: #92A8D1;
    --dark-text: #333333;
    --light-text: #666666;
    --light-bg: #FFFFFF;
    --off-white: #F9F9F9;
    --accent: #E07A5F;
    --success: #81B29A;
    --error: #F25C54;
    --warning: #F4A261;
    --border-color: #E0E0E0;
   --shadow: rgba(0, 0, 0, 0.1);
/* Fonts */
    --font-heading: "Allura", cursive;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html, body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.05;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--serenity);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================================
   NAVIGATION BAR
   ================================================ */

.navbar {
    background: var(--light-bg);
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo a {
  font-family: var(--font-heading);   /* add */
  font-weight: 400;                  /* add */

  font-size: 1.5rem;
  color: var(--serenity);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
}

.nav-links a.active {
    color: var(--serenity);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--serenity);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cart-link {
    position: relative;
}

.cart-badge {
    background: var(--accent);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: none;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    background: linear-gradient(135deg, var(--rose-quartz), var(--serenity));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--serenity);
    color: white;
}

.btn-primary:hover {
    background: #7a92bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background: var(--rose-quartz);
    color: white;
}

.btn-secondary:hover {
    background: #f0b5b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ================================================
   SECTIONS
   ================================================ */

.page-header {
    background: linear-gradient(135deg, var(--rose-quartz), var(--serenity));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* ================================================
   FEATURED PRODUCTS
   ================================================ */

.featured-products {
    padding: 4rem 0;
    background: var(--off-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--serenity);
    margin: 1rem 0;
}

/* ================================================
   FEATURES SECTION
   ================================================ */

.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--light-text);
}

/* ================================================
   PRODUCTS PAGE
   ================================================ */

.products-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--serenity);
    color: var(--serenity);
}

.filter-btn.active {
    background: var(--serenity);
    color: white;
    border-color: var(--serenity);
}

/* ================================================
   PRODUCT DETAIL PAGE
   ================================================ */

.breadcrumb {
    background: var(--off-white);
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumb a:hover {
    color: var(--serenity);
}

.product-detail-section {
    padding: 3rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-image-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
}

.product-info {
    padding: 1rem 0;
}

.product-category {
    display: inline-block;
    background: var(--rose-quartz);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--serenity);
    margin-bottom: 2rem;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description h3 {
    margin-bottom: 0.5rem;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--off-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    border-color: var(--serenity);
    color: var(--serenity);
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--light-text);
}

/* ================================================
   SHOPPING CART
   ================================================ */

.cart-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--light-text);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity .quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.cart-item-subtotal {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--serenity);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--serenity);
    border-top: 2px solid var(--serenity);
    border-bottom: none;
    margin-top: 1rem;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--light-text);
}

/* ================================================
   CHECKOUT PAGE
   ================================================ */

.checkout-section {
    padding: 3rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-container,
.order-summary-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.order-summary-container {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--serenity);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--light-text);
    font-size: 0.85rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-item-qty {
    font-size: 0.9rem;
    color: var(--light-text);
}

.summary-item-price {
    font-weight: bold;
    color: var(--serenity);
}

.summary-total {
    margin-top: 1.5rem;
}

/* ================================================
   ACCOUNT PAGE
   ================================================ */

.account-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--serenity);
    color: white;
    border-color: var(--serenity);
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.dashboard {
    display: grid;
    gap: 2rem;
}

.user-info-card,
.order-history-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem;
    background: var(--off-white);
    border-radius: 4px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: var(--off-white);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: var(--warning);
    color: white;
}

.status-processing {
    background: var(--serenity);
    color: white;
}

.status-delivered {
    background: var(--success);
    color: white;
}

.status-cancelled {
    background: var(--error);
    color: white;
}

/* ================================================
   ORDER SUCCESS PAGE
   ================================================ */

.success-section {
    padding: 4rem 0;
}

.success-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    color: white;
    font-size: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.order-details-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.order-info-item {
    padding: 1rem;
    background: var(--off-white);
    border-radius: 4px;
}

.order-id {
    font-family: monospace;
    background: var(--rose-quartz);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.order-next-steps ul {
    list-style-position: inside;
    color: var(--dark-text);
    line-height: 2;
}

.payment-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 4px;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.whats-next-section {
    padding: 3rem 0;
    background: var(--off-white);
}

.whats-next-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--serenity);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    background: var(--dark-text);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--rose-quartz);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--rose-quartz);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.text-center {
    text-align: center;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--light-text);
}

.error {
    color: var(--error);
    text-align: center;
    padding: 2rem;
}

.error-message {
    background: #ffe6e6;
    color: var(--error);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid var(--error);
}

.error-container {
    text-align: center;
    padding: 4rem 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    /* Navigation */
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image-container {
        position: static;
    }

    .product-title {
        font-size: 2rem;
    }

    /* Cart */
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item-quantity,
    .cart-item-subtotal {
        grid-column: 2;
    }

    .remove-btn {
        grid-column: 1 / -1;
        text-align: right;
    }

    .cart-summary {
        position: static;
    }

    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-container {
        position: static;
        order: -1;
    }

    /* Account */
    .info-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }

    /* Success */
    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}
