/* =========================================
   STRENGTH SYNC — GLOBAL STYLES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #f8f7f4;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    width: 100%;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    font-size: 20px;
}

.logo small {
    margin-top: 7px;
    font-size: 8px;
    letter-spacing: 3px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.5;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons button {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.cart-button {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 45% 55%;
    background: #eeeae4;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 12%;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.gold-line {
    width: 55px;
    height: 3px;
    background: #b08a45;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 430px;
    font-size: 16px;
    color: #555;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    padding: 15px 27px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    transition: 0.3s ease;
}

.button-dark {
    background: #111;
    color: white;
}

.button-light {
    border: 1px solid #111;
    color: #111;
}

.button:hover {
    transform: translateY(-2px);
}

.hero-image {
    min-height: 650px;
    overflow: hidden;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}


/* =========================================
   MAIN CATEGORIES
========================================= */

.categories {
    padding: 100px 5%;
    background: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #ddd;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 45px 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        transparent 55%
    );
    color: white;
}

.category-overlay h3 {
    font-size: 30px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.category-button {
    background: white;
    color: #111;
    padding: 13px 25px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
}

.category-button:hover {
    background: #111;
    color: white;
}


/* =========================================
   COLLECTION HEADER
========================================= */

.collection-header {
    text-align: center;
    padding: 70px 5% 45px;
    background: #eeeae4;
}

.collection-header h1 {
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1.05;
    margin-bottom: 15px;
}

.collection-header p {
    color: #555;
}


/* =========================================
   PRODUCT GRID
========================================= */

section.product-grid {
    width: 92% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 55px 0 80px !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
}


/* =========================================
   PRODUCT CARD
========================================= */

section.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    overflow: hidden;
    display: block !important;
}

section.product-grid .product-card > img {
    display: block;
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
}

.product-info {
    padding: 18px;
}

.product-info h2 {
    font-size: 17px;
    margin-bottom: 7px;
}

.product-price {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-button {
    width: 100%;
    border: none;
    background: #111;
    color: white;
    padding: 13px 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-button:hover {
    background: #333;
}


/* =========================================
   PRODUCT MODAL
========================================= */

.product-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 25px;
    z-index: 2000;
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    position: relative;

    width: 90%;
    max-width: 900px;
    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;
    padding: 35px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;

    border: none;
    background: transparent;

    font-size: 30px;
    cursor: pointer;

    z-index: 10;
}

.product-detail {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 35px;
    align-items: center;
}

.product-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-option {
    margin-top: 25px;
}

.product-option h3 {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 12px;
}

.option-button:hover {
    border-color: #111;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.size-option small {
    font-size: 9px;
    color: #777;
}

.add-cart-button {
    margin-top: 25px;
}


/* =========================================
   SHOPPING CART
========================================= */

.cart-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0, 0, 0, 0.55) !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: stretch !important;

    z-index: 99999 !important;
}

.cart-panel {
    position: relative !important;

    width: 420px !important;
    max-width: 90vw !important;
    height: 100vh !important;

    background: #ffffff !important;

    padding: 35px !important;

    overflow-y: auto !important;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15) !important;
}

.cart-panel h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.cart-close {
    position: absolute;

    top: 15px;
    right: 20px;

    border: none;
    background: transparent;

    font-size: 30px;
    cursor: pointer;

    z-index: 10;
}

.empty-cart {
    color: #666;
    text-align: center;
    margin-top: 60px;
}

.cart-item {
    display: flex;
    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid #e5e5e5;
}

.cart-item img {
    width: 90px;
    height: 110px;

    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.cart-item-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.cart-remove {
    margin-top: 8px;

    border: none;
    background: transparent;

    padding: 0;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;
    text-decoration: underline;
}

.cart-total {
    display: flex;
    justify-content: space-between;

    padding: 25px 0;
    margin-top: 10px;

    border-top: 1px solid #111;

    font-size: 15px;
}

.checkout-button {
    margin-top: 10px;
}


/* =========================================
   ABOUT
========================================= */

.about {
    padding: 120px 10%;
    text-align: center;
    background: #eeeae4;
}

.about h2 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.about > p:last-child {
    max-width: 650px;
    margin: auto;
    color: #555;
    font-size: 16px;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 40px 5%;
    background: #111;
    color: white;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.site-footer p {
    font-size: 12px;
    color: #aaa;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 70px 8%;
        order: 2;
    }

    .hero-image {
        min-height: 500px;
        order: 1;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 500px;
    }

    section.product-grid {
        width: 94% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    section.product-grid .product-card > img {
        height: 280px !important;
    }

    .product-info {
        padding: 15px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   PHONE
========================================= */

@media (max-width: 600px) {

    .site-header {
        padding: 18px 5%;
    }

    .main-nav {
        display: none;
    }

    .logo span {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 14px;
    }

    .categories {
        padding: 70px 5%;
    }

    .category-card {
        height: 500px;
    }

    section.product-grid {
        width: 94% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 35px 0 55px !important;
    }

    section.product-grid .product-card > img {
        height: 220px !important;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h2 {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-description {
        font-size: 11px;
    }

    .product-button {
        padding: 10px 8px;
        font-size: 9px;
    }

    .about {
        padding: 80px 8%;
    }

    /* CART MOBILE */

    .cart-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        padding: 25px 20px !important;
    }

    .cart-item img {
        width: 75px;
        height: 95px;
    }
}