/* Premium Product Detail Page Stylesheet */

/* General Styling & Color Variables */
:root {
    --brand-red: #e41f27;
    --brand-red-hover: #b8141a;
    --dark-charcoal: #1d1d1f;
    --muted-gray: #86868b;
    --light-bg: #f5f5f7;
    --border-color: #e5e5e7;
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Breadcrumb customization */
.at-detail-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    font-weight: 500;
}
.at-detail-breadcrumb a {
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.at-detail-breadcrumb a:hover {
    color: var(--brand-red);
}
.at-detail-breadcrumb span {
    color: var(--dark-charcoal);
}

/* 2-Column Product Layout */
.at-product-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}
.at-gallery-column {
    flex: 0 0 45%;
    max-width: 45%;
}
.at-info-column {
    flex: 0 0 calc(55% - 40px);
    max-width: calc(55% - 40px);
}

@media (min-width: 992px) {
    .at-product-detail-grid {
        align-items: flex-start;
    }
    .at-gallery-column {
        position: sticky;
        top: 120px;
        z-index: 10;
    }
}

/* Gallery Slider Layout */
.product__details--media {
    position: sticky;
    top: 100px;
}
.single__product--preview {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.product__media--preview__items {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product__media--preview__items--link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}
.product__media--preview__items--img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product__media--preview__items--link:hover .product__media--preview__items--img {
    transform: scale(1.08);
}
.single__product--nav {
    margin-top: 15px;
}
.product__media--nav__items {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}
.single__product--nav .swiper-slide-thumb-active .product__media--nav__items {
    border-color: var(--brand-red);
}
.product__media--nav__items--img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Column styling */
.product__details--info__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-charcoal);
    line-height: 1.25;
    margin-bottom: 8px;
}
.at-brand-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.at-compat-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(228, 31, 39, 0.08);
    color: var(--brand-red);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Rating */
.at-detail-rating {
    margin-bottom: 20px;
}
.rating__review--text {
    font-size: 14px;
    color: var(--muted-gray);
    font-weight: 500;
    margin-left: 8px;
}

/* Price block */
.product__details--info__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--light-bg);
    padding: 16px 20px;
    border-radius: 12px;
}
.price_text {
    display: flex;
    align-items: center;
    gap: 12px;
}
.current__price {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-charcoal);
}
.price_saving_percentage {
    background: var(--brand-red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.product_details_old_price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted-gray);
}
.old__price {
    text-decoration: line-through;
}

/* Feature Badge grid */
.at-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.at-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

/* Swatches selector */
.variant__input--fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.product__variant--title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 12px;
}
.at-color-swatches {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.at-swatch-wrapper {
    position: relative;
}
.at-swatch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.at-swatch-label {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.at-swatch-label:hover {
    transform: scale(1.1);
}
.at-swatch-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.at-swatch-input:checked + .at-swatch-label {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--brand-red);
}

/* Quantity Box */
.quantity-label-box-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.quantity__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-charcoal);
}
.quantity__box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.quantity__value {
    border: none;
    background: transparent;
    width: 36px;
    height: 38px;
    font-size: 18px;
    color: var(--dark-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity__value:hover {
    background: var(--light-bg);
}
.quantity__number {
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    width: 50px;
    height: 38px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    outline: none;
}

/* Sticky Action Column / Box */
.at-sticky-actions-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 100px;
}
.at-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.at-btn-cart, .at-btn-buy {
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    width: 100%;
}
.at-btn-cart {
    background: #ffffff;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
}
.at-btn-cart:hover {
    background: rgba(228, 31, 39, 0.04);
}
.at-btn-buy {
    background: var(--brand-red);
    color: #ffffff;
}
.at-btn-buy:hover {
    background: var(--brand-red-hover);
}

/* Delivery & Warranty Card */
.at-delivery-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--glass-shadow);
}
.at-delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.at-delivery-icon {
    color: var(--brand-red);
    flex-shrink: 0;
}
.at-delivery-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 2px 0;
}
.at-delivery-desc {
    font-size: 13px;
    color: var(--muted-gray);
    margin: 0;
}

/* Premium Information Tabs Layout */
.at-tabs-section {
    margin-top: 50px;
    margin-bottom: 50px;
}
.at-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 30px;
    padding: 0;
    list-style: none;
}
.at-tab-link {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.at-tab-link.active {
    color: var(--brand-red);
}
.at-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-red);
}
.at-tab-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
}
.at-tab-pane {
    display: none;
    animation: at-fadeIn 0.3s ease;
}
.at-tab-pane.active {
    display: block;
}

/* Specs Table */
.at-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.at-specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}
.at-specs-table tr:last-child td {
    border-bottom: none;
}
.at-specs-key {
    font-weight: 600;
    color: var(--dark-charcoal);
    width: 30%;
    background: var(--light-bg);
}
.at-specs-value {
    color: #4a4a4a;
}

/* Features Grid */
.at-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.at-feature-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}
.at-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 31, 39, 0.15);
}
.at-feature-icon {
    color: var(--brand-red);
    margin-bottom: 12px;
}
.at-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0;
}

/* Reviews List Styles */
.reviews__comment--list {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.reviews__comment--list:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.reviews__comment--thumb {
    flex-shrink: 0;
}
.reviews__comment--content {
    flex-grow: 1;
    margin-left: 20px;
}
.reviews__comment--top {
    margin-bottom: 8px;
}
.reviews__comment--content__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
}
.reviews__comment--content__date {
    font-size: 13px;
    color: var(--muted-gray);
}
.reviews__comment--content__desc {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
}

/* Related Products Swiper styling */
.product__section {
    margin-top: 50px;
}
.section__heading--maintitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-charcoal);
}

/* Mobile Sticky Bar styling */
.at-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    box-sizing: border-box;
}
.at-mobile-price-col {
    display: flex;
    flex-direction: column;
}
.at-mobile-sticky-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-red);
}
.at-mobile-sticky-mrp {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--muted-gray);
}
.at-mobile-btn-group {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: 20px;
}
.at-mobile-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.at-mobile-cart {
    background: #ffffff;
    border: 1px solid var(--brand-red);
    color: var(--brand-red);
}
.at-mobile-buy {
    background: var(--brand-red);
    color: #ffffff;
}

/* Utility Animations */
@keyframes at-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accordion on Mobile Viewports */
.mobile__accordion__item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.mobile__accordion__header {
    padding: 16px 20px;
    font-weight: 700;
    color: var(--dark-charcoal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}
.mobile__accordion__header.active {
    border-bottom: 1px solid var(--border-color);
    color: var(--brand-red);
}
.mobile__accordion__header .mobile__accordion__icon {
    transition: transform 0.2s;
}
.mobile__accordion__header.active .mobile__accordion__icon {
    transform: rotate(180deg);
}
.mobile__accordion__content {
    display: none;
    padding: 20px;
}
.mobile__accordion__content.active {
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .at-gallery-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .at-info-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product__details--media {
        position: static;
    }
    .at-tabs-nav {
        display: none;
    }
    .at-tab-content {
        display: none;
    }
    
    body {
        padding-bottom: 80px; /* offset for bottom sticky action bar */
    }
    .at-mobile-sticky-bar {
        display: flex;
    }
    .product-action-row {
        display: none !important;
    }
}

/* Layout Spacing Wrappers */
.at-gallery-wrapper {
    margin-bottom: 30px;
}
.at-info-wrapper {
    margin-bottom: 30px;
}
.at-delivery-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}
.at-tabs-wrapper {
    margin-top: 45px;
    margin-bottom: 45px;
}
.at-related-products-wrapper {
    margin-top: 50px;
    margin-bottom: 50px;
}
