/* assets/css/style.css */
:root {
    --bg-color: #F9F9F9;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-color: #889c76; /* Logo main color */
    --primary-btn: #889c76;
    --white: #FFFFFF;
    --border-color: #EAEAEA;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.close-menu {
    display: none;
}

.nav-links {
    justify-self: start;
    display: flex;
    align-items: center;
}

.logo {
    justify-self: center;
}

.logo img {
    height: 60px;
    display: block;
}

.cart-icon {
    justify-self: end;
    cursor: pointer;
    font-weight: 600;
}

.nav-links a {
    margin: 0 0.7rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #888;
}

/* Mobile Navbar Styles */
@media (max-width: 900px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 1rem 0;
        font-size: 1.1rem;
    }
    
    .close-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-primary);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        min-width: 100%;
        border-left: 2px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }

    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 180px;
    }
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    justify-self: end;
}

.search-input {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 250px;
    transition: width 0.3s ease;
}
.search-input:focus {
    width: 300px;
    border-color: var(--accent-color);
}

.header-actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-icon {
    cursor: pointer;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #718362; /* Slightly darker shade of logo color */
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Section Container */
.section-container {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.product-price {
    font-weight: 600;
    color: var(--text-secondary);
}

.add-to-cart-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

/* Mega Footer */
.footer-mega {
    background-color: #f4f6f8;
    color: var(--text-primary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-social, .footer-payments, .footer-security {
    margin-bottom: 2rem;
}

.footer-social h4, .footer-payments h4, .footer-security h4 {
    margin-bottom: 1rem;
}

.social-icons span, .security-icons span {
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
}

.social-icons a:hover {
    color: var(--accent-color) !important;
}

.payment-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-bar {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom-links {
    margin-bottom: 1rem;
}

.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}
.add-to-cart-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Cart Drawer - Premium UI */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-cart:hover {
    color: #d32f2f;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Empty cart state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
}

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

.cart-empty p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Cart Item Styling */
.cart-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1.2rem;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Quantity Controls */
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #f9f9f9;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

.qty-num {
    width: 35px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

.remove-item:hover {
    color: #d32f2f;
    background: #ffeeee;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
}

.cart-total-label {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 1.1rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

/* Checkout Page Specific - Premium 2-Column Layout */
.checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.checkout-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkout-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(136, 156, 118, 0.2);
}

/* Payment Methods */
.payment-methods-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-card:hover {
    border-color: var(--accent-color);
    background: #f9fdf9;
}

.payment-method-card.active {
    border-color: var(--accent-color);
    background: #f0f7ef;
    box-shadow: 0 4px 10px rgba(136, 156, 118, 0.15);
}

.payment-method-card input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.payment-method-info {
    flex: 1;
}

.payment-method-info strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.payment-method-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-logos {
    display: flex;
    gap: 0.5rem;
}

.payment-logos img {
    height: 25px;
    object-fit: contain;
}

/* Order Summary */
.order-summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-img-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.summary-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.summary-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

.summary-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.summary-item-price {
    font-weight: bold;
}

.summary-totals {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-line.total {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-section {
        order: 2; /* Form below summary on mobile */
        padding: 1.2rem;
    }
    
    .checkout-section:last-child {
        order: 1; /* Summary on top */
        background: #fafafa;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkout-wrapper {
        padding: 1rem;
    }
}

/* Product Detail Specific */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 5%;
}

.product-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.product-detail-desc {
    margin-bottom: 2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "logo cart" "nav nav";
        padding: 1rem;
        gap: 1rem;
    }
    .logo {
        grid-area: logo;
        justify-self: start;
    }
    .cart-icon {
        grid-area: cart;
    }
    .nav-links {
        grid-area: nav;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    .nav-links a {
        margin: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    
    .section-container {
        padding: 3rem 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    .product-img {
        height: 250px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    
    .checkout-container {
        margin: 1rem;
        padding: 1rem;
    }

    .footer-mega-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Size Guide Modal Specifics */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.close-modal {
    color: #000;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: #eee;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.close-modal:hover,
.close-modal:focus {
    background: #ccc;
    text-decoration: none;
}

/* Tabs */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}
.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #438186;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}
.tab-btn.active {
    background-color: #438186;
    color: white;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-align: center;
}
.size-table th, .size-table td {
    border: 1px solid #ddd;
    padding: 10px;
}
.size-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}
.size-table td.highlight {
    background-color: #ff8b7b;
    color: white;
}
.size-table td.header-col {
    background-color: #f5f5f5;
    font-weight: 600;
    width: 100px;
}
.size-table td .cm {
    font-size: 0.75rem;
    color: #777;
    margin-left: 5px;
}

/* Graphic Section */
.size-graphic {
    background-color: #8daeab;
    padding: 2rem;
    border-radius: 8px;
    color: white;
    text-align: center;
}
.size-graphic h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.size-graphic p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.graphic-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
@media (max-width: 600px) {
    .graphic-content {
        flex-direction: column;
    }
}
.instructions {
    text-align: left;
}
.instruction-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.instruction-item span.num {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}
