/* =========================================================
   SHOPTIME.TN
   MAIN + PRODUCT LANDING PAGE CSS
   ========================================================= */

:root {

    --blue: #1e40af;
    --blue-dark: #16358f;
    --blue-light: #eff6ff;

    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-dark: #ea580c;

    --pink: #ec4899;
    --green: #059669;

    --text: #172033;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    --white: #ffffff;
    --black: #0f172a;

    --bg: #f8fafc;
    --bg-soft: #f1f5f9;

    --border: #e2e8f0;

    --danger: #dc2626;

    --gradient:
        linear-gradient(
            135deg,
            #1e40af 0%,
            #059669 100%
        );

    --gradient-orange:
        linear-gradient(
            135deg,
            #f97316 0%,
            #ec4899 100%
        );

    --shadow-sm:
        0 4px 15px rgba(15, 23, 42, 0.06);

    --shadow:
        0 10px 35px rgba(15, 23, 42, 0.09);

    --shadow-lg:
        0 20px 60px rgba(15, 23, 42, 0.13);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


img {

    max-width: 100%;

    height: auto;

    display: block;
}


a {

    color: inherit;

    text-decoration: none;
}


button,
input,
select,
textarea {

    font: inherit;
}


button {

    cursor: pointer;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin-left: auto;

    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(
        255,
        255,
        255,
        0.97
    );

    backdrop-filter: blur(12px);

    border-bottom:
        1px solid var(--border);
}


.header-inner {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.site-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.site-logo img {

    width: auto;

    height: 64px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {

    display: flex;

    align-items: center;

    gap: 5px;
}


.main-nav a {

    padding: 10px 15px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    color: var(--text);

    transition:
        color .2s ease,
        background .2s ease;
}


.main-nav a:hover {

    color: var(--blue);

    background: var(--blue-light);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-button {

    display: none;

    width: 44px;

    height: 44px;

    padding: 8px;

    border: 0;

    border-radius: 10px;

    background: var(--bg-soft);
}


.mobile-menu-button span {

    display: block;

    width: 100%;

    height: 2px;

    margin: 5px 0;

    background: var(--text);

    border-radius: 2px;
}


.mobile-nav {

    display: none;

    padding: 10px 16px 20px;

    background: var(--white);

    border-top:
        1px solid var(--border);
}


.mobile-nav a {

    display: block;

    padding: 13px 8px;

    border-bottom:
        1px solid var(--bg-soft);

    font-weight: 600;
}


.mobile-nav.is-open {

    display: block;
}


/* =========================================================
   MAIN
   ========================================================= */

.site-main {

    min-height: 60vh;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    padding: 22px 0 14px;

    color: var(--text-muted);

    font-size: 13px;
}


.breadcrumb a {

    color: var(--blue);

    font-weight: 600;
}


.breadcrumb span:last-child {

    color: var(--text);
}


/* =========================================================
   PRODUCT HERO
   ========================================================= */

.product-hero {

    padding: 20px 0 70px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


.product-hero-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, .9fr);

    gap: 70px;

    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.product-gallery {

    position: sticky;

    top: 105px;
}


.product-main-image {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}


.product-main-image img {

    width: 100%;

    max-height: 540px;

    object-fit: contain;

    border-radius: 12px;
}


.product-image-placeholder {

    width: 100%;

    min-height: 400px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text-muted);

    background: var(--bg-soft);

    border-radius: 15px;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.product-thumbnails {

    display: flex;

    gap: 12px;

    margin-top: 15px;

    overflow-x: auto;

    padding-bottom: 5px;
}


.product-thumbnail {

    flex: 0 0 76px;

    width: 76px;

    height: 76px;

    padding: 4px;

    border:
        2px solid transparent;

    border-radius: 12px;

    background: var(--white);

    overflow: hidden;

    transition: .2s ease;
}


.product-thumbnail:hover,
.product-thumbnail.active {

    border-color: var(--blue);
}


.product-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 7px;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-information {

    padding-top: 20px;
}


.product-category {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 50px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 15px;
}


.product-title {

    margin: 0;

    font-size: clamp(
        32px,
        4vw,
        50px
    );

    line-height: 1.12;

    letter-spacing: -1px;

    color: var(--text);
}


.product-short-description {

    margin: 20px 0;

    color: var(--text-light);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-price-box {

    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 14px;

    margin: 25px 0 12px;
}


.product-price {

    color: var(--orange-dark);

    font-size: 34px;

    font-weight: 800;

    line-height: 1;
}


.product-old-price {

    color: var(--text-muted);

    font-size: 18px;

    text-decoration:
        line-through;
}


/* =========================================================
   STOCK
   ========================================================= */

.product-stock {

    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 25px;
}


.product-stock-available {

    color: var(--green);

    background: #ecfdf5;
}


.product-stock-unavailable {

    color: var(--danger);

    background: #fef2f2;
}


/* =========================================================
   VARIANTS
   ========================================================= */

.product-variants {

    padding: 22px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


.product-variants h3 {

    margin: 0 0 15px;

    font-size: 17px;
}


.variant-group {

    margin-bottom: 18px;
}


.variant-group:last-child {

    margin-bottom: 0;
}


.variant-label {

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;

    color: var(--text);
}


.variant-options {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.variant-option {

    min-width: 70px;

    padding: 10px 16px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--white);

    color: var(--text);

    font-weight: 600;

    transition: .2s ease;
}


.variant-option:hover {

    border-color: var(--blue);

    color: var(--blue);
}


.variant-option.active {

    color: var(--white);

    background: var(--blue);

    border-color: var(--blue);

    box-shadow:
        0 4px 12px
        rgba(30, 64, 175, .22);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 0;

    border-radius: 12px;

    padding: 13px 22px;

    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.btn:hover {

    transform: translateY(-2px);
}


.btn-primary {

    color: var(--white);

    background: var(--gradient-orange);

    box-shadow:
        0 8px 22px
        rgba(249, 115, 22, .25);
}


.btn-primary:hover {

    box-shadow:
        0 12px 28px
        rgba(249, 115, 22, .32);
}


.btn-large {

    min-height: 56px;

    padding:
        15px 28px;

    font-size: 17px;
}


.btn-disabled {

    color: #94a3b8;

    background: #e2e8f0;

    cursor: not-allowed;
}


.product-hero-actions {

    margin-top: 25px;
}


/* =========================================================
   MINI TRUST
   ========================================================= */

.product-trust-mini {

    display: grid;

    gap: 9px;

    margin-top: 22px;

    color: var(--text-light);

    font-size: 14px;
}


.product-trust-mini div {

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   SECTION GENERAL
   ========================================================= */

.product-benefits,
.product-description-section,
.product-faq {

    padding: 85px 0;
}


.product-benefits {

    background: var(--bg);
}


.section-heading {

    margin-bottom: 35px;
}


.section-kicker {

    display: block;

    margin-bottom: 7px;

    color: var(--orange);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.section-heading h2 {

    margin: 0;

    font-size: clamp(
        28px,
        4vw,
        38px
    );

    line-height: 1.2;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.feature-card {

    padding: 28px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.feature-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow);
}


.feature-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    color: var(--white);

    background: var(--gradient);

    font-size: 20px;

    font-weight: 800;
}


.feature-card h3 {

    margin: 0 0 8px;

    font-size: 18px;
}


.feature-card p {

    margin: 0;

    color: var(--text-light);

    line-height: 1.7;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.content-narrow {

    width: min(
        100%,
        850px
    );

    margin-left: auto;

    margin-right: auto;
}


.product-description {

    color: #475569;

    font-size: 17px;

    line-height: 2;
}


/* =========================================================
   FAQ
   ========================================================= */

.product-faq {

    background: var(--bg);
}


.faq-list {

    display: grid;

    gap: 12px;
}


.faq-item {

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 13px;

    overflow: hidden;
}


.faq-item summary {

    position: relative;

    padding: 19px 22px;

    cursor: pointer;

    list-style: none;

    font-weight: 700;
}


.faq-item summary::-webkit-details-marker {

    display: none;
}


.faq-item summary::after {

    content: "+";

    position: absolute;

    right: 20px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--blue);

    font-size: 22px;

    font-weight: 400;
}


.faq-item[open] summary::after {

    content: "−";
}


.faq-answer {

    padding:
        0 22px 20px;

    color: var(--text-light);

    line-height: 1.8;
}


/* =========================================================
   ORDER SECTION
   ========================================================= */

.order-section {

    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #fff7ed 100%
        );
}


.order-wrapper {

    display: grid;

    grid-template-columns:
        .85fr
        1.15fr;

    gap: 60px;

    align-items: start;
}


.order-intro {

    padding-top: 25px;
}


.order-intro h2 {

    margin: 0 0 18px;

    font-size: clamp(
        32px,
        4vw,
        44px
    );

    line-height: 1.15;
}


.order-intro > p {

    max-width: 520px;

    color: var(--text-light);

    font-size: 17px;

    line-height: 1.8;
}


.order-benefits {

    display: grid;

    gap: 12px;

    margin-top: 30px;
}


.order-benefits div {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 600;
}


/* =========================================================
   ORDER FORM CARD
   ========================================================= */

.order-form-card {

    padding: 30px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.form-group {

    margin-bottom: 17px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border:
        1px solid #cbd5e1;

    border-radius: 10px;

    background: var(--white);

    color: var(--text);

    padding: 12px 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(30, 64, 175, .10);
}


.form-group textarea {

    resize: vertical;

    min-height: 90px;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.quantity-control {

    display: flex;

    width: 150px;

    height: 46px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}


.quantity-control button {

    width: 45px;

    border: 0;

    background: var(--bg-soft);

    font-size: 20px;

    font-weight: 700;
}


.quantity-control input {

    width: 60px;

    padding: 0;

    border: 0;

    border-radius: 0;

    text-align: center;

    font-weight: 700;

    box-shadow: none;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.order-summary {

    margin-top: 25px;

    padding: 18px;

    border-radius: 12px;

    background: var(--bg);
}


.order-summary > div {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;

    color: var(--text-light);

    font-size: 14px;
}


.order-summary strong {

    color: var(--text);

    text-align: right;
}


.order-summary .order-total {

    margin-top: 8px;

    padding-top: 15px;

    border-top:
        1px solid var(--border);

    font-size: 17px;
}


.order-summary .order-total strong {

    color: var(--orange-dark);

    font-size: 23px;
}


/* =========================================================
   ORDER BUTTON
   ========================================================= */

.btn-order {

    width: 100%;

    margin-top: 18px;

    min-height: 56px;

    font-size: 17px;
}


.form-note {

    margin: 12px 0 0;

    color: var(--text-muted);

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   MOBILE STICKY CTA
   ========================================================= */

.mobile-sticky-cta {

    display: none;

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 999;

    padding:
        10px 14px;

    background:
        rgba(
            255,
            255,
            255,
            .97
        );

    backdrop-filter: blur(10px);

    border-top:
        1px solid var(--border);

    box-shadow:
        0 -5px 25px
        rgba(15, 23, 42, .10);

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.mobile-sticky-cta span {

    color: var(--orange-dark);

    font-size: 19px;

    font-weight: 800;
}


.mobile-sticky-cta .btn {

    min-height: 45px;

    padding:
        9px 18px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    padding: 55px 0 0;

    background: #0f172a;

    color: #e2e8f0;
}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 50px;

    padding-bottom: 45px;
}


.footer-brand p {

    margin-top: 12px;

    color: #94a3b8;
}


.footer-logo {

    height: 70px;

    width: auto;

    object-fit: contain;
}


.site-footer h3 {

    margin-top: 0;

    margin-bottom: 15px;

    color: var(--white);

    font-size: 17px;
}


.site-footer a {

    display: block;

    margin-bottom: 8px;

    color: #cbd5e1;

    transition: color .2s ease;
}


.site-footer a:hover {

    color: var(--orange-light);
}


.site-footer p {

    color: #94a3b8;

    margin: 6px 0;
}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .product-hero-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }


    .product-gallery {

        position: static;
    }


    .product-main-image {

        min-height: 430px;
    }


    .product-information {

        padding-top: 0;
    }


    .features-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .order-wrapper {

        grid-template-columns: 1fr;

        gap: 35px;
    }


    .order-intro {

        padding-top: 0;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body {

        padding-bottom: 70px;
    }


    .container {

        width:
            min(
                calc(100% - 24px),
                var(--container)
            );
    }


    /* Header */

    .header-inner {

        min-height: 66px;
    }


    .site-logo img {

        height: 52px;
    }


    .main-nav {

        display: none;
    }


    .mobile-menu-button {

        display: block;
    }


    /* Breadcrumb */

    .breadcrumb {

        padding:
            15px 0 10px;

        font-size: 12px;
    }


    /* Hero */

    .product-hero {

        padding:
            8px 0 45px;
    }


    .product-hero-grid {

        gap: 25px;
    }


    .product-main-image {

        min-height: 330px;

        padding: 15px;

        border-radius: 18px;
    }


    .product-main-image img {

        max-height: 360px;
    }


    .product-title {

        font-size: 34px;

        letter-spacing: -.5px;
    }


    .product-short-description {

        font-size: 16px;

        line-height: 1.7;
    }


    .product-price {

        font-size: 30px;
    }


    .product-old-price {

        font-size: 16px;
    }


    .btn-large {

        width: 100%;

        min-height: 54px;
    }


    /* Features */

    .product-benefits,
    .product-description-section,
    .product-faq {

        padding: 55px 0;
    }


    .features-grid {

        grid-template-columns: 1fr;

        gap: 14px;
    }


    .feature-card {

        padding: 22px;
    }


    /* Order */

    .order-section {

        padding: 55px 0;
    }


    .order-form-card {

        padding: 20px;

        border-radius: 18px;
    }


    .order-intro h2 {

        font-size: 32px;
    }


    /* Sticky CTA */

    .mobile-sticky-cta {

        display: flex;
    }


    /* Footer */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-bottom {

        flex-direction: column;

        gap: 5px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .product-title {

        font-size: 29px;
    }


    .product-main-image {

        min-height: 290px;
    }


    .order-form-card {

        padding: 16px;
    }


    .mobile-sticky-cta {

        gap: 8px;
    }


    .mobile-sticky-cta .btn {

        padding:
            9px 13px;

        font-size: 14px;
    }

}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */

.thank-you-section {

    padding: 80px 0;

    min-height: 70vh;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #fff7ed 100%
        );
}


.thank-you-card {

    width: min(
        100%,
        700px
    );

    margin: auto;

    padding: 45px;

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.thank-you-icon {

    width: 70px;

    height: 70px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ecfdf5;

    color: var(--green);

    font-size: 35px;

    font-weight: 800;
}


.thank-you-card h1 {

    margin: 0 0 15px;

    font-size: 34px;

    line-height: 1.2;
}


.thank-you-message {

    color: var(--text-light);

    font-size: 17px;

    line-height: 1.8;
}


.order-number-box {

    margin:
        25px 0;

    padding: 18px;

    background: var(--blue-light);

    border-radius: 12px;
}


.order-number-box span {

    display: block;

    color: var(--text-light);

    font-size: 13px;
}


.order-number-box strong {

    display: block;

    margin-top: 5px;

    color: var(--blue);

    font-size: 22px;
}


.thank-you-items {

    margin-top: 25px;

    text-align: left;
}


.thank-you-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 0;

    border-bottom:
        1px solid var(--border);
}


.thank-you-item strong {

    display: block;
}


.thank-you-item span {

    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 13px;
}


.thank-you-summary {

    margin:
        20px 0 25px;

    text-align: left;
}


.thank-you-summary > div {

    display: flex;

    justify-content: space-between;

    padding: 7px 0;

    color: var(--text-light);
}


.thank-you-summary .thank-you-total {

    margin-top: 8px;

    padding-top: 15px;

    border-top:
        1px solid var(--border);

    color: var(--text);
}


.thank-you-total strong {

    color: var(--orange-dark);

    font-size: 22px;
}


@media (max-width: 600px) {

    .thank-you-section {

        padding: 45px 0;
    }


    .thank-you-card {

        padding: 28px 18px;
    }


    .thank-you-card h1 {

        font-size: 28px;
    }


    .thank-you-item {

        align-items: flex-start;
    }

}


/* Navigation principale SHOPTIME */

.product-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-navigation__link {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-navigation__link:hover {
    color: #059669;
}

@media (max-width: 760px) {
    .product-header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-navigation {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .site-navigation__link {
        font-size: 13px;
    }
}
