/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --primary: #F5B24C;
    --secondary: #0B2D3A;
    --bg-white: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray-border: #e2e2e2;
    --text-main: #000000;
    --text-muted: #767676;
}

.yo {
    color: var(--primary);
    margin-left: -10px;

}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
}

/* Header */
.top-nav {
    padding: 20px 40px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--secondary);
}

/* Layout */
.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

/* LEFT: Gallery */
.main-image-container {
    width: 100%;
    background: var(--gray-light);
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    margin-bottom: 15px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    border-bottom: 3px solid var(--text-main);
}

/* RIGHT: Details */
.brand-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--secondary);
}

.price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.price {
    font-size: 24px;
    font-weight: 700;
}

.rating {
    color: var(--primary);
    font-size: 20px;
}

.description {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.5;
}

.description ul {
    margin-top: 15px;
    list-style: none;
}

.description li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.description li {
    padding-left: 1em;
    margin-bottom: 5px;
}

/* Options */
.selection-group {
    margin-bottom: 30px;
}

.selection-group label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.color-circle.selected::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid var(--text-main);
    border-radius: 50%;
}

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

.size-btn {
    flex: 1;
    min-width: 60px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-border);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.size-btn.selected {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

.error-msg {
    color: #e50000;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Form inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.form-group.full-width {
    grid-column: span 2;
}

input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--text-muted);
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
}

input:focus {
    border-color: var(--secondary);
    border-width: 2px;
    padding: 15px;
    /* offset border change */
}

/* Checkout Area */
.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-light);
    padding: 20px;
    margin-bottom: 20px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-border);
    background: var(--bg-white);
}

.qty-selector button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.qty-selector span {
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.total-price-display {
    font-size: 18px;
    font-weight: bold;
}

.btn-primary {
    width: 100%;
    padding: 20px;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Thank you page specific */
.thank-you-container {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px;
    transition: all 0.3s;
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1DA851;
}

/* Responsive */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* =========================================
   ACCORDION STYLES (ADIDAS STYLE)
   ========================================= */
.accordion {
    margin-bottom: 40px;
    border-top: 1px solid var(--gray-border);
}

.accordion-item {
    border-bottom: 1px solid var(--gray-border);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.accordion-content-inner {
    padding-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    /* Slightly darker than muted for readability */
}

.accordion-content-inner ul {
    list-style: none;
    margin-top: 10px;
}

.accordion-content-inner li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 8px;
}

.accordion-content-inner li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Active State for Accordion */
.accordion-item.active .accordion-content {
    max-height: 400px;
    /* Large enough to fit content smoothly */
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
    /* Turns the + into an x */
    color: var(--primary);
}
/* Gallery Styles */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f7f7f7;
    border-radius: 8px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.15s ease;
}

/* 5 Thumbnails f Row Wa7d o Sghar */
.thumbnail-list {
    display: flex;
    gap: 8px; /* l'espace binathom sghir */
    width: 100%;
}

.thumbnail-list .thumb {
    width: calc(20% - 6.4px); /* Kat9sm l'espace 3la 5 dyal les images b tssawi */
    height: 70px; /* 3loow sghir bach ybano compact */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-list .thumb:hover {
    opacity: 1;
}

.thumbnail-list .thumb.active {
    opacity: 1;
    border-color: #000; /* Border kahla 3la tswira li mselectia */
}
/* Gallery Layout Vertical */
.gallery-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Vertical Thumbnails (4 images f jnb) */
.thumbnail-list-vertical {
    display: flex;
    flex-direction: column; /* Rttbhom verticalement */
    gap: 10px;
    width: 80px; /* L'3rd dyal les thumbnails */
    flex-shrink: 0;
}

.thumbnail-list-vertical .thumb {
    width: 100%;
    height: 90px; /* 3loow dyal kol tswira */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.thumbnail-list-vertical .thumb:hover {
    opacity: 1;
}

.thumbnail-list-vertical .thumb.active {
    opacity: 1;
    border-color: #000; /* Border kahla 3la tswira li mselectia */
}

/* Main Image Container */
.main-image-container {
    flex-grow: 1;
    height: 520px;
    overflow: hidden;
    background-color: #f7f7f7;
    border-radius: 8px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.15s ease;
}
/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {

    * {
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .top-nav {
        padding: 15px;
    }

    .product-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 15px;
        width: 100%;
    }

    /* Gallery */
    .gallery-wrapper {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .thumbnail-list-vertical {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 5px;
    }

    .thumbnail-list-vertical::-webkit-scrollbar {
        display: none;
    }

    .thumbnail-list-vertical .thumb {
        width: 70px;
        min-width: 70px;
        height: 85px;
    }

    .main-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    /* Product */
    .product-title {
        font-size: 24px;
    }

    .price-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Form */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    /* Sizes */
    .size-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .size-btn {
        min-width: auto;
    }

    /* Checkout */
    .checkout-summary {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .qty-selector {
        justify-content: center;
    }

    .btn-primary {
        font-size: 15px;
        padding: 18px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }

    .accordion-header {
        font-size: 14px;
    }

    .accordion-content-inner {
        font-size: 14px;
    }

    input {
        font-size: 16px;
    }
}
html,
body {
    width: 100%;
    overflow-x: hidden;
}