:root {
    --primary-color: #1a1a1a;
    --secondary-color: #555555;
    --accent-color: #d4af37; /* Gold accent */
    --background-color: #e0e0e0;
    --light-bg: #f5f5f5;
    --border-color: #e1e1e1;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

/* Promotion Marquee */
.promo-marquee {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-content span {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Promo Reminder for Checkout */
.promo-reminder {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-align: center;
}

.promo-reminder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-icon {
    font-size: 1.8rem;
}

.promo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.promo-text strong {
    font-weight: 700;
    color: #000;
}

.promo-reminder.free-delivery {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.promo-reminder.free-delivery .promo-text {
    color: #ffffff;
}

.promo-reminder.free-delivery .promo-text strong {
    color: #ffffff;
}

.delivery-free {
    color: #27ae60 !important;
    font-weight: 700;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    overflow-wrap: break-word;
}

ul {
    list-style: none;
}

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

p, h1, h2, h3, h4, h5, h6, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

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

.contact-hero {
    padding: 80px 0 30px;
    background-color: var(--light-bg);
    text-align: center;
}

.contact-subtitle {
    max-width: 680px;
    margin: -10px auto 0;
    color: var(--secondary-color);
}

.contact-section {
    padding: 60px 0 90px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.account-page {
    background-color: var(--light-bg);
}

.account-section {
    padding: 60px 0 90px;
    background-color: var(--light-bg);
    min-height: calc(100vh - 220px);
}

.account-card {
    max-width: 640px;
    margin: 0 auto;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.account-tab {
    background-color: #e7e7e7;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.account-tab:hover {
    background-color: #dcdcdc;
}

.auth-error {
    color: #c0392b;
    background-color: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--accent-color);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: #25d366;
    color: #fff;
    font-weight: 600;
}

.whatsapp-link:hover {
    background-color: #1fb85a;
    color: #fff;
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 10px;
    background-color: var(--background-color);
    position: relative;
    max-width: 200px;
}

.search-container input {
    border: none;
    outline: none;
    padding: 5px;
    width: 100%;
    background-color: transparent;
    font-size: 0.9rem;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 5px;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn, .cart-btn, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-bg);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--light-bg);
}

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

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-price {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/123.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding-bottom: 180px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn-primary {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

/* Collections Grid */
.collections-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.collection-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.collection-image {
    position: relative;
    height: 100%;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-overlay,
.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light);
    z-index: 2;
}

.collection-overlay h3,
.collection-content h3 {
    margin-bottom: 12px;
}

.collection-overlay .btn,
.collection-content .btn {
    position: relative;
    z-index: 3;
}

/* Collection Filters */
.collection-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3rem;
    padding: 20px 0;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Products Grid */
.products-section {
    padding: 4rem 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--light-bg);
    cursor: pointer;
}

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

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.btn-view-details {
    width: 100%;
    padding: 8px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-details:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
}

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

.footer-section a {
    color: #ccc;
}

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

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

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-bg);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-size {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 500;
}

.cart-item-controls {
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
}

.quantity-controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    background: var(--light-bg);
    padding: 5px;
    border-radius: 4px;
    width: fit-content;
    max-width: 100%;
}

.qty-btn {
    background: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-value {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    align-self: flex-start;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Modals */
.modal, .product-modal, .checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.open, .product-modal.open, .checkout-modal.open {
    display: flex;
}

.modal-content {
    background-color: var(--background-color);
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-content {
    max-width: 600px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

/* Product Detail Page Styles - NEW & FIXED */
.product-detail-section,
.related-products-section {
    padding: 60px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-detail-section .container,
.related-products-section .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Unique Slideshow Styles */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--light-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.main-image-container:hover .image-nav-btn {
    opacity: 1;
}

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

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.image-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.thumbnail {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.product-images-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-images-grid .detail-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* Make the first image span full width if only 3 images, or just specific design choice
   For now, strictly 2 columns as requested "side by side" */

.product-detail-info {
    position: sticky;
    top: 100px; /* Adjust based on navbar height */
    width: 100%;
    box-sizing: border-box;
}

.product-detail-category {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-detail-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.product-detail-description {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-description h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-detail-description p {
    color: var(--secondary-color);
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.product-size-selection {
    margin-bottom: 30px;
}

.product-size-selection h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.size-btn:hover {
    border-color: var(--primary-color);
}

.size-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.size-chart {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.size-chart h4 {
    margin: 0;
    padding: 14px 16px 6px;
    font-size: 1rem;
}

.size-chart-note {
    margin: 0;
    padding: 0 16px 12px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.size-chart-table {
    border-top: 1px solid var(--border-color);
}

.size-chart-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.size-chart-header {
    font-weight: 600;
    background-color: var(--light-bg);
}

.size-chart-row:not(.size-chart-header) {
    border-top: 1px solid var(--light-bg);
}

.product-actions {
    display: flex;
    gap: 20px;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-now {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-now:hover {
    background-color: #b08d4b;
}

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

.checkout-summary {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.grand-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .product-detail-section .container,
    .related-products-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .product-detail-info {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .product-detail-category {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-detail-name {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-detail-price {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-detail-description {
        text-align: left !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-detail-description h3 {
        text-align: left !important;
    }
    
    .product-detail-description p {
        text-align: left !important;
        width: 100% !important;
    }
    
    .size-buttons {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .product-size-selection {
        width: 100% !important;
    }
    
    .product-size-selection h3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-actions {
        justify-content: center !important;
        width: 100% !important;
        flex-direction: row !important;
        display: flex !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    
    .btn-add-cart, .btn-buy-now {
        flex: 1 !important;
        display: block !important;
        width: auto !important;
    }
    
    .size-chart {
        text-align: left !important;
        width: 100% !important;
    }
    
    .image-gallery {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .main-image-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .image-thumbnails {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .collections-section, .products-section, .footer {
        padding: 3rem 0;
    }
    
    .product-detail-section .container,
    .related-products-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero {
        height: 50vh;
        padding-bottom: 100px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .btn-primary {
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .collection-card {
        height: 250px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 200px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-wrapper {
        display: grid;
        grid-template-columns: 1fr auto auto auto;
        align-items: center;
        gap: 8px 12px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-icons {
        display: contents; /* Allows children to be grid items */
    }

    .search-container {
        grid-row: 2;
        grid-column: 1 / -1; /* Full width on second row */
        max-width: 100%;
        margin: 5px 0;
        background-color: #f5f5f5;
        border: 1px solid var(--border-color);
    }

    .search-container input {
        width: 100%;
        font-size: 0.85rem;
    }

    /* Target the account, cart and menu buttons specifically as grid items */
    .nav-icons > a, .nav-icons > button {
        grid-row: 1;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
    }

    .nav-icons > a svg, .nav-icons > button svg {
        width: 20px;
        height: 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100vw;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1000;
        box-sizing: border-box;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .product-images-grid {
        grid-template-columns: 1fr;
    }

    .collection-header {
        padding: 30px 0 15px;
    }

    .collection-filters {
        gap: 5px;
        margin-bottom: 1.5rem;
        padding: 10px 0;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .contact-hero {
        padding: 30px 0 15px;
    }

    .contact-section, .account-section {
        padding: 30px 0 50px;
    }

    .contact-card {
        padding: 15px;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .product-detail-info {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .product-detail-name {
        font-size: 1.4rem !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .product-detail-price {
        font-size: 1.1rem !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-detail-category {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .product-size-selection h3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .size-chart h4 {
        text-align: left !important;
    }
    
    .size-chart-note {
        text-align: left !important;
    }
    
    .product-actions {
        flex-direction: row !important;
        gap: 15px !important;
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    .btn-add-cart, .btn-buy-now {
        flex: 1 !important;
    }
    
    .image-gallery {
        align-items: center !important;
    }

    .cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 10px;
    }

    .cart-item-image {
        width: 60px;
        height: 80px;
    }
    
    /* Checkout page mobile styles */
    .checkout-page-content {
        padding: 30px 0;
    }
    
    .checkout-card {
        padding: 20px;
    }
    
    .promo-reminder {
        padding: 12px 15px;
    }
    
    .promo-text {
        font-size: 0.9rem;
    }
    
    .checkout-item {
        gap: 10px;
    }
    
    .checkout-item-img {
        width: 50px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 0.9rem !important;
    }
    
    .product-detail-section .container,
    .related-products-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .nav-wrapper {
        gap: 10px 8px !important;
    }

    .hero-content h2 {
        font-size: 1.8rem !important;
    }

    .section-title {
        font-size: 1.4rem !important;
    }

    .product-images-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .product-detail-info {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .product-detail-category {
        text-align: center !important;
        width: 100% !important;
    }
    
    .product-detail-name {
        font-size: 1.3rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .product-detail-price {
        font-size: 1.05rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    .btn-add-cart, .btn-buy-now {
        width: 100% !important;
        display: block !important;
    }
    
    .size-buttons {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .image-gallery {
        align-items: center !important;
        width: 100% !important;
    }

    .container {
        padding: 0 15px !important;
    }

    .product-card {
        margin-bottom: 15px !important;
    }

    .footer-content {
        gap: 20px !important;
    }
}

/* Checkout Page Styles */
.checkout-page-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.checkout-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.checkout-card h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.checkout-items-list {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

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

.checkout-item-name {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.checkout-item-meta {
    font-size: 0.85rem;
    color: #666;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Payment Options */
.payment-method-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.payment-options {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--primary-color);
    background-color: rgba(0,0,0,0.02);
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-text {
    display: flex;
    flex-direction: column;
}

.payment-title {
    font-weight: 600;
    font-size: 1rem;
}

.payment-desc {
    font-size: 0.8rem;
    color: #666;
}

.btn-place-order {
    margin-top: 30px;
    height: 55px;
    font-size: 1.1rem;
}

/* Order Success Overlay */
.order-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
}

.order-success-overlay.active {
    display: flex;
}

.success-content {
    max-width: 400px;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-section {
        order: -1;
    }
}
