/* ASOS Layout Constants */
.asos-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumbs */
.asos-breadcrumbs {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.asos-breadcrumbs a {
    color: #666;
    text-decoration: none;
}
.asos-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Top Section Layout */
.asos-product-top {
    display: grid;
    grid-template-columns: 80px 1fr 380px;
    gap: 30px;
    margin-bottom: 50px;
}

/* Thumbnails */
.asos-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: none;
}
.asos-thumbnails::-webkit-scrollbar {
    display: none;
}
.asos-thumbnails img {
    width: 100%;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.2s;
}
.asos-thumbnails img.active,
.asos-thumbnails img:hover {
    border-color: #000;
}

/* Main Image */
.asos-main-image {
    position: relative;
    display: flex;
    justify-content: center;
    background: #f8f8f8;
    height: 600px;
}
.asos-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}
.asos-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}
.asos-gallery-arrow.prev { left: 10px; }
.asos-gallery-arrow.next { right: 10px; }

/* Product Info */
.asos-product-info {
    display: flex;
    flex-direction: column;
}
.asos-product-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
    text-transform: none;
}
.asos-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}
.asos-sale-price {
    color: #d01345;
    font-weight: 700;
}
.asos-old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1.1rem;
    margin-left: 10px;
    font-weight: 400;
}
.asos-product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #666;
}
.asos-product-reviews-summary .stars {
    color: #000;
    letter-spacing: 2px;
}

/* Swatch & Size */
.asos-variant-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.asos-color-swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.asos-color-swatch {
    width: 40px;
    height: 50px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}
.asos-color-swatch.active {
    border: 2px solid #000;
}

/* Quantity Stepper */
.asos-size-selector-wrapper {
    margin-bottom: 25px;
}
.asos-qty-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    width: fit-content;
}
.asos-qty-btn {
    background: transparent;
    border: none;
    width: 44px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
    user-select: none;
}
.asos-qty-btn:hover {
    background: #f2f2f2;
}
.asos-qty-input {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    padding: 12px 0;
    -moz-appearance: textfield;
}
.asos-qty-input::-webkit-outer-spin-button,
.asos-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.asos-qty-input:focus {
    outline: none;
}

/* Buttons */
.asos-btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.asos-btn-add {
    flex-grow: 1;
    background-color: #018849;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.asos-btn-add:hover {
    background-color: #016b39;
}
.asos-btn-wishlist {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}
.asos-btn-wishlist:hover {
    background: #eee;
}

/* Info Box */
.asos-info-box {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.asos-info-box i {
    font-size: 1.2rem;
    color: #666;
}

/* Accordion */
.asos-accordion {
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.asos-accordion-item {
    border-bottom: 1px solid #eee;
}
.asos-accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;
}
.asos-accordion-content {
    padding-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    display: none;
}
.asos-accordion-content.active {
    display: block;
}

/* Horizontal Carousels */
.asos-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-align: left;
}
.asos-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-bottom: 40px;
}
.asos-carousel::-webkit-scrollbar {
    display: none;
}
.asos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.asos-product-card {
    flex: 0 0 calc(25% - 12px);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
}
.asos-product-image-wrapper {
    position: relative;
    margin-bottom: 10px;
}
.asos-product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
    background: #f8f8f8;
}
.asos-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.asos-product-card-wishlist {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #222;
}
.asos-product-card-info {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.asos-product-card-title {
    font-size: 0.75rem;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 2;
    font-weight: 300;
}
.asos-product-card-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: #222;
    order: 1;
}

/* Reviews Section */
.asos-reviews-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-bottom: 60px;
}
.asos-review-summary-box {
    position: sticky;
    top: 20px;
}
.asos-review-summary-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.asos-review-overall {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.asos-review-stars-large {
    font-size: 1.2rem;
    color: #000;
    letter-spacing: 2px;
}
.asos-review-score {
    font-size: 0.9rem;
    color: #222;
}
.asos-review-text-muted {
    font-size: 0.85rem;
    color: #666;
}
.asos-review-bars {
    margin-top: 30px;
}
.asos-review-bar-item {
    margin-bottom: 20px;
}
.asos-review-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.asos-review-bar-track {
    height: 3px;
    background: #e5e5e5;
    position: relative;
    border-radius: 2px;
}
.asos-review-bar-thumb {
    width: 14px;
    height: 14px;
    background: #000;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.asos-write-review-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
.asos-write-review-btn:hover {
    background: #f8f8f8;
}

.asos-review-list .asos-review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.asos-review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.asos-review-stars {
    color: #000;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.asos-review-date {
    font-size: 0.8rem;
    color: #666;
}
.asos-review-user {
    font-size: 0.85rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}
.asos-review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}
.asos-review-helpful {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
}
.asos-review-helpful button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.85rem;
}
.asos-review-helpful button:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .asos-container {
        padding: 0 15px;
    }
    .asos-product-top {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    .asos-breadcrumbs {
        display: none;
    }
    .asos-main-image {
        order: -1;
        margin-left: -15px;
        margin-right: -15px;
        height: auto;
    }
    .asos-main-image img {
        width: 100vw;
        height: auto;
        max-height: none;
    }
    .asos-gallery-arrow {
        display: none;
    }
    .asos-thumbnails {
        display: none;
    }
    .asos-product-info {
        order: 1;
    }
    .asos-product-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
        color: #666;
        line-height: 1.3;
    }
    .asos-product-price {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }
    .asos-product-reviews-summary {
        margin-bottom: 15px;
        font-size: 0.8rem;
    }
    .asos-btn-group {
        margin-bottom: 15px;
    }
    .asos-btn-add {
        padding: 12px;
        font-size: 0.95rem;
    }
    .asos-btn-wishlist {
        width: 46px;
        height: 46px;
    }
    .asos-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .asos-carousel {
        gap: 8px;
        padding-bottom: 15px;
    }
    .asos-product-card {
        flex: 0 0 calc(33.33% - 6px);
    }
    .asos-product-card-wishlist {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        bottom: 5px;
        right: 5px;
    }
    .asos-reviews-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
        padding-top: 30px;
    }
    .asos-review-summary-box {
        position: static;
    }
}
