/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary-black: #0e0e0e;
    --primary-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-grey: #666;
    --border-color: #ddd;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-white);
    color: var(--primary-black);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--primary-black);
    transition: 0.3s;
}

.btn-black {
    background: var(--primary-black);
    color: var(--primary-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

.btn-small {
    font-size: 10px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: transparent;
    text-transform: uppercase;
    cursor: pointer;
}

/* =========================================
   3. HEADER
   ========================================= */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--primary-white);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Default state for mobile elements */
.menu-toggle, .mobile-close {
    display: none;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding: 40px 0 80px 0;
    background: linear-gradient(to right, #fff 40%, #f4f4f4 40%);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 45%;
    padding-right: 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 110px;
    line-height: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 400px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    width: 55%;
    height: 600px;
    position: relative;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================================
   5. MARQUEE STRIP
   ========================================= */
.marquee {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: scroll 20s linear infinite;
}

.marquee-content span {
    margin: 0 30px;
}

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

/* =========================================
   6. FEATURED GRID
   ========================================= */
.featured {
    padding: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    height: 600px;
}

.card-tall {
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-tall img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-btn {
    position: absolute;
    bottom: 30px;
    background: var(--primary-white);
    padding: 10px 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    border: none;
    cursor: pointer;
}

.col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-wide {
    flex: 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.card-wide-content {
    flex: 1;
    z-index: 2;
}

.card-wide-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-wide-content span {
    font-size: 10px;
    color: var(--text-grey);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.card-wide img {
    width: 160px;
    height: 100%;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 0;
}

/* =========================================
   7. PRODUCT CARDS (PREMIUM STYLE)
   ========================================= */
.collection {
    padding: 40px 0 80px 0;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: 48px;
    text-transform: uppercase;
}

.collection-desc {
    max-width: 400px;
    font-size: 12px;
    color: var(--text-grey);
    text-align: right;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.tab.active, .tab:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Wrapper for Hover Lift Effect */
.product-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
}

/* Image Card Styling */
.product-card {
    background: #f4f4f4;
    position: relative;
    aspect-ratio: 3 / 4; /* Portrait Fashion Ratio */
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.product-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05); /* Zoom Effect */
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end; /* Buttons at bottom */
    padding-bottom: 20px;
    gap: 10px;
    opacity: 0;
    transition: 0.3s ease;
}

.product-card:hover .overlay, .overlay-active .overlay {
    opacity: 1;
}

/* Circular Heart Button */
.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sale Badge */
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 1px;
}

/* Typography for Products */
.product-details {
    padding: 5px 0;
}

.product-cat {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-title {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-black);
    line-height: 1.4;
}

.product-price {
    font-size: 14px;
    color: var(--primary-black);
    font-weight: 500;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    margin-right: 8px;
    font-size: 13px;
}

/* Fallback for Home Page (if structure differs) */
.product-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* =========================================
   8. TEXT BANNER & BOTTOM SECTION
   ========================================= */
.text-banner {
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-left {
    width: 30%;
    font-size: 12px;
    color: var(--text-grey);
    line-height: 1.6;
}

.text-right {
    width: 50%;
    font-family: var(--font-heading);
    font-size: 48px;
    text-transform: uppercase;
    text-align: right;
    line-height: 1;
}

.bottom-section {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 80px 0;
}

.bottom-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.bottom-image {
    width: 350px;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.bottom-content {
    flex: 1;
}

.bottom-title {
    font-family: var(--font-heading);
    font-size: 64px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px;
}

.bottom-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
    max-width: 500px;
}

/* =========================================
   9. TESTIMONIALS & NEWSLETTER
   ========================================= */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--primary-black);
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--primary-white);
    padding: 40px 30px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

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

.stars {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.reviewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer span {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Newsletter */
.newsletter {
    padding: 100px 0;
    background-color: var(--primary-white);
    text-align: center;
}

.newsletter-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.newsletter-wrapper p {
    color: var(--text-grey);
    margin-bottom: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    outline: none;
    font-family: var(--font-main);
}

.newsletter-form input:focus {
    border-color: var(--primary-black);
}

/* =========================================
   10. SHOP PAGE SPECIFIC STYLES
   ========================================= */
.page-header {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-grey);
    font-size: 14px;
}

.shop-layout {
    display: flex;
    gap: 50px;
    padding-bottom: 100px;
}

.shop-sidebar {
    width: 25%;
    flex-shrink: 0;
    background: #fff;
    padding-right: 20px;
}

.filter-group {
    margin-bottom: 40px;
}

.filter-group h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search {
    display: flex;
    border: 1px solid var(--border-color);
}

.sidebar-search input {
    width: 100%;
    border: none;
    padding: 10px;
    outline: none;
    font-family: var(--font-main);
}

.sidebar-search button {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--text-grey);
}

.category-list li, .price-list li {
    margin-bottom: 12px;
}

.category-list a, .price-list a {
    font-size: 14px;
    color: var(--text-grey);
    display: flex;
    justify-content: space-between;
    transition: 0.3s;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.category-list a:hover, .price-list a:hover {
    color: var(--primary-black);
    padding-left: 5px;
}

.category-list span {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
}

.shop-products-area {
    width: 75%;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-grey);
}

.shop-sort {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    outline: none;
    font-family: var(--font-main);
    color: var(--text-grey);
    cursor: pointer;
}

.shop-grid-3-col {
    grid-template-columns: repeat(3, 1fr) !important;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-black);
    color: #aaa;
    padding: 80px 0 30px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: var(--primary-white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--primary-white);
    font-size: 16px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ccc;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: var(--primary-white);
}

/* =========================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* --- TABLET (Max Width: 1024px) --- */
@media (max-width: 1024px) {
    /* Hero */
    .hero-title { font-size: 80px; }
    .hero-image { height: 500px; }

    /* Featured */
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
    .col-right {
        grid-column: span 2;
        flex-direction: row;
        height: 300px;
    }

    /* Grids */
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    
    /* Text & Footer */
    .text-banner { flex-direction: column; gap: 30px; text-align: left; }
    .text-right { width: 100%; text-align: left; }
    .text-left { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* --- MOBILE (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* --- Header & Menu --- */
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    .logo { font-size: 20px; }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--primary-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: 0.4s ease;
        z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links li a { font-size: 18px; }
    
    .mobile-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
    }

    /* --- Hero --- */
    .hero-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
    .hero-content { width: 100%; padding-right: 0; }
    .hero-title { font-size: 60px; }
    .hero-desc { margin: 0 auto 30px auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { width: 100%; height: 350px; }

    /* --- Featured --- */
    .featured-grid { display: flex; flex-direction: column; }
    .card-tall { height: 400px; width: 100%; }
    .col-right { flex-direction: column; height: auto; }
    .card-wide { height: 250px; padding: 20px; }
    .card-wide img { width: 120px; }

    /* --- Collections --- */
    .collection-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .collection-title { font-size: 36px; }
    .collection-desc { text-align: left; max-width: 100%; }
    .filter-tabs { overflow-x: auto; padding-bottom: 10px; width: 100%; white-space: nowrap; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card { aspect-ratio: 3/4; height: auto; } /* Ensure aspect ratio holds */

    /* --- Shop Page Specifics --- */
    .shop-layout { flex-direction: column; }
    .shop-sidebar { width: 100%; margin-bottom: 40px; }
    .shop-products-area { width: 100%; }
    .shop-grid-3-col { grid-template-columns: repeat(2, 1fr) !important; }

    /* --- Bottom & Footer --- */
    .bottom-wrapper { flex-direction: column; text-align: center; }
    .bottom-image { width: 100%; height: 300px; }
    .bottom-title { font-size: 42px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

/* --- SMALL MOBILE (Max Width: 480px) --- */
@media (max-width: 480px) {
    .hero-title { font-size: 48px; }
    .product-grid, .shop-grid-3-col { grid-template-columns: 1fr !important; }
    .newsletter-form { flex-direction: column; }
    .shop-toolbar { flex-direction: column; gap: 15px; align-items: flex-start; }
    .card-wide img { width: 100px; }
}

/* =========================================
   SINGLE PRODUCT PAGE STYLES
   ========================================= */

/* Breadcrumbs */
.breadcrumbs {
    padding: 40px 0 20px 0;
    font-size: 14px;
    color: var(--text-grey);
}
.breadcrumbs a:hover {
    color: var(--primary-black);
}
.breadcrumbs .current {
    color: var(--primary-black);
    font-weight: 600;
}

/* Product Wrapper */
.single-product {
    padding-bottom: 80px;
}

.product-wrapper {
    display: flex;
    gap: 60px;
}

/* Gallery - Left Side */
.product-gallery {
    width: 50%;
}

.main-image {
    width: 100%;
    height: 600px;
    margin-bottom: 15px;
    overflow: hidden;
}

.main-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: crosshair;
}

.small-images {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.img-col {
    flex: 1;
    cursor: pointer;
}

.img-col img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.img-col img:hover {
    opacity: 1;
}

/* Details - Right Side */
.product-details-area {
    width: 50%;
    padding-top: 20px;
}

.p-category {
    font-size: 12px;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-title {
    font-family: var(--font-heading);
    font-size: 42px;
    text-transform: uppercase;
    margin: 10px 0;
    line-height: 1.1;
}

.p-rating {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 20px;
}
.p-rating span {
    color: var(--text-grey);
    margin-left: 5px;
}

.p-price {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.p-desc {
    color: var(--text-grey);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Selectors (Size/Qty) */
.p-selectors {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.selector-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

/* Custom Size Buttons */
.size-options label {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
    margin-bottom: 0;
}

.size-options input:checked + label {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

.qty-input {
    width: 60px;
    padding: 10px;
    border: 1px solid var(--border-color);
    font-family: var(--font-main);
    text-align: center;
    height: 40px;
}

/* Actions */
.p-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-block {
    flex: 1; /* Makes button take full width available */
    text-align: center;
}

.icon-btn-large {
    width: 50px;
    height: 45px; /* Matches btn height roughly */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-black);
    font-size: 18px;
}

.p-meta p {
    font-size: 13px;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.p-meta span {
    color: var(--primary-black);
    font-weight: 600;
    width: 80px;
    display: inline-block;
}

/* Related Products Section */
.related-products {
    padding: 60px 0;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

/* Responsive Single Product */
@media (max-width: 900px) {
    .product-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery, .product-details-area {
        width: 100%;
    }

    .main-image {
        height: 400px;
    }
}

/* =========================================
   CART PAGE STYLES
   ========================================= */

.cart-section {
    padding-bottom: 80px;
}

.cart-wrapper {
    display: flex;
    gap: 40px;
}

/* --- Cart Table --- */
.cart-items-container {
    width: 70%;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead tr {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    padding: 15px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-table tbody tr {
    border-bottom: 1px solid #eee;
}

.cart-table td {
    padding: 20px 0;
    vertical-align: middle;
}

/* Product Info inside Table */
.cart-product-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product-info img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cp-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.cp-text small {
    color: var(--text-grey);
    font-size: 12px;
}

.remove-link {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.remove-link:hover {
    text-decoration: underline;
}

/* Input in table */
.cart-table input[type="number"] {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    font-family: var(--font-main);
}

/* --- Cart Summary (Right Sidebar) --- */
.cart-summary {
    width: 30%;
    background: #fcfcfc;
    padding: 30px;
    border: 1px solid #eee;
    height: fit-content;
}

.cart-summary h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-grey);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-black);
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.coupon-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    outline: none;
}

/* --- Responsive Cart --- */
@media (max-width: 900px) {
    .cart-wrapper {
        flex-direction: column;
    }

    .cart-items-container, .cart-summary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* Hide non-essential columns on small screens */
    .cart-table th:nth-child(2), /* Price Header */
    .cart-table td:nth-child(2)  /* Price Data */
    {
        display: none;
    }
    
    .cart-product-info img {
        width: 60px;
        height: 80px;
    }
}

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

.checkout-section {
    padding-bottom: 100px;
}

.checkout-wrapper {
    display: flex;
    gap: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* --- Billing Form (Left) --- */
.checkout-form {
    width: 60%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

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

.form-group label span {
    color: #ff4d4d;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    outline: none;
    font-family: var(--font-main);
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-black);
}

/* --- Order Summary (Right) --- */
.checkout-summary {
    width: 40%;
}

.order-box {
    background: #fcfcfc;
    padding: 40px;
    border: 2px solid #f0f0f0;
}

.order-table-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: 14px;
}

.order-list {
    margin-bottom: 20px;
}

.order-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-grey);
}

.order-totals {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    margin-bottom: 30px;
}

.ot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.ot-row.total {
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-black);
    margin-bottom: 0;
}

.final-price {
    font-size: 20px;
    color: var(--primary-black);
}

/* Payment Methods */
.payment-methods-box {
    margin-top: 20px;
}

.payment-option {
    margin-bottom: 15px;
}

.payment-option input {
    margin-right: 10px;
}

.payment-option label {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.payment-desc {
    font-size: 12px;
    color: var(--text-grey);
    margin-top: 5px;
    margin-left: 25px; /* Indent to align with text */
    line-height: 1.5;
    display: none; /* Hidden by default, simple CSS logic usually requires JS to toggle perfectly, but we'll show the first one logic in a real app */
}

/* Just for visual demo: show description of the checked one (CSS sibling selector trick) */
.payment-option input:checked ~ .payment-desc {
    display: block;
}

/* --- Responsive Checkout --- */
@media (max-width: 900px) {
    .checkout-wrapper {
        flex-direction: column;
    }

    .checkout-form, .checkout-summary {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* =========================================
   ACCOUNT / LOGIN PAGE STYLES
   ========================================= */

.account-section {
    padding-bottom: 100px;
}

.account-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.account-col {
    flex: 1; /* Both columns take equal width */
}

/* Vertical Divider Line */
.account-divider {
    width: 1px;
    background-color: #eee;
    margin: 0 20px;
}

/* Form Specifics */
.account-form {
    margin-top: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-grey);
}

.forgot-pass {
    color: var(--text-grey);
    text-decoration: underline;
}

.forgot-pass:hover {
    color: var(--primary-black);
}

.privacy-text {
    font-size: 13px;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
}

.privacy-text a {
    color: var(--primary-black);
    font-weight: 600;
}

/* Reusing .form-group from Checkout, but adding specifics if needed */
.account-form input {
    height: 45px; /* Slightly taller inputs for login */
}

/* Responsive Account Page */
@media (max-width: 768px) {
    .account-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .account-divider {
        display: none; /* Hide vertical line on mobile */
    }

    /* Add a visual break between stacked forms */
    .account-col:first-child {
        border-bottom: 1px solid #eee;
        padding-bottom: 50px;
    }
}
/* =========================================
   UPDATED CHECKOUT PAYMENT STYLES
   ========================================= */

.payment-methods-box {
    margin-top: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Keeps borders clean */
}

/* Individual Payment Row */
.payment-option-row {
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background 0.2s;
}

.payment-option-row:last-child {
    border-bottom: none;
}

.payment-option-row:hover {
    background: #fafafa;
}

/* The Clickable Label Area */
.payment-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    margin: 0; /* Reset default label margins */
}

/* Radio Button Styling */
.payment-label input[type="radio"] {
    margin-right: 15px;
    accent-color: #0e0e0e; /* Makes radio button black */
    transform: scale(1.2);
    cursor: pointer;
}

/* Image Container (The Fix for Big Images) */
.pm-img-container {
    width: 50px;       /* Fixed Width */
    height: 35px;      /* Fixed Height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 3px;
}

.pm-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures logo fits inside without stretching */
    display: block;
}

/* Text Styling */
.pm-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Instructions / Description Box */
.payment-desc {
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    padding: 0 15px 15px 50px; /* Left padding aligns text with name, not radio */
    display: none; /* Hidden by default */
    line-height: 1.5;
    border-top: 1px dashed #eee;
}

/* Show description when radio is checked */
.payment-option-row input:checked ~ .payment-desc {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
    cursor: pointer;
    width: calc(100% - 30px);
}

.pm-label-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.pm-label-content span {
    font-weight: 600;
    font-size: 14px;
    color: #0e0e0e;
}

.payment-desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-left: 25px;
    display: none; /* Hide description by default */
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Show description when radio is checked */
.payment-option-row input:checked ~ .payment-desc {
    display: block;
}
/* =========================================
   USER DASHBOARD (MY ACCOUNT)
   ========================================= */
.dashboard-container {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
}

.dashboard-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fcfcfc;
    padding: 25px;
    height: fit-content;
    border: 1px solid #eee;
    border-radius: 8px;
}

.user-welcome {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}
.user-welcome strong { color: #0e0e0e; font-size: 14px; }

.dash-nav a {
    display: block;
    padding: 12px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}
.dash-nav a:hover, .dash-nav a.active { color: #000; padding-left: 5px; font-weight: 500; }
.dash-nav a:last-child { border-bottom: none; }
.dash-nav i { margin-right: 10px; width: 20px; text-align: center; color: #999; }
.dash-nav a:hover i { color: #000; }

.dashboard-content {
    flex: 1;
}

.dash-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Dashboard Table */
.order-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.order-table th { text-align: left; background: #f9f9f9; padding: 15px; font-size: 12px; text-transform: uppercase; font-weight: 600; color: #666; }
.order-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: middle; }

/* Dashboard Status Badges */
.badge { padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.st-pending { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; } 
.st-processing { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.st-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.st-cancelled { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

@media (max-width: 768px) {
    .dashboard-container { flex-direction: column; }
    .dashboard-sidebar { width: 100%; margin-bottom: 30px; }
    .order-table { display: block; overflow-x: auto; white-space: nowrap; }
}