/* Detail Page Styles */
.detail {
    padding: 40px 0;
    background-color: var(--bg-color);
}

/* ========================================
   NEW 2-COLUMN LAYOUT (E-commerce Style)
   ======================================== */
.detail__layout {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 25px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    overflow: hidden;
}

/* LEFT COLUMN - Gallery */
.detail__left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery__main {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.gallery__main-img:hover {
    transform: scale(1.01);
}

/* Thumbnails Slider with Arrows */
.gallery__thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbs-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbs-nav:hover {
    background: var(--primary-color);
    color: white;
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.gallery__thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f5f5f5;
}

.gallery__thumb:hover,
.gallery__thumb.active {
    border-color: var(--primary-color);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT COLUMN - Product Info */
.detail__right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    overflow: hidden;
}

/* Header Row - Title + Price inline */
.detail__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.detail__product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.detail__category {
    font-size: 1.2rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Price - Simple red text, no box */
.detail__price-simple {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e53935;
    white-space: nowrap;
}

.detail__price-simple sup {
    font-size: 1.2rem;
}

/* Special Description - Softer */
.detail__special {
    padding: 0;
}

.special-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.3rem;
    border-left: 3px solid #43a047;
}

/* Specs Table */
.detail__specs {
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:nth-child(even) {
    background: #f5f6f8;
}

.spec-label {
    color: #666;
    font-weight: 500;
    font-size: 1.3rem;
}

.spec-value {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Note Box */
.detail__note-box {
    background: #e3f2fd;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.4rem;
    color: #1565c0;
    border-left: 3px solid #2196f3;
}

.detail__note-box strong {
    color: #0d47a1;
}

/* Action Buttons - Horizontal */
.detail__buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-buy {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
    transition: all 0.3s;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.btn-cart {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    transition: all 0.3s;
}

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

.btn-info {
    padding: 14px 16px;
    font-size: 1.4rem;
    border: 2px solid #2196f3;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    color: #2196f3;
    transition: all 0.3s;
}

.btn-info:hover {
    background: #2196f3;
    color: white;
}

/* Note Modal */
.note-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.note-modal.active {
    display: flex;
}

.note-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.note-modal__content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
}

.note-modal__close:hover {
    color: #333;
}

.note-modal__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-modal__title i {
    color: #2196f3;
}

.note-modal__body {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

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

.sold-badge {
    width: 100%;
    padding: 16px;
    text-align: center;
    background: #95a5a6;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .detail__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail__left {
        position: static;
    }

    .gallery__main {
        aspect-ratio: 16/10;
        max-height: 500px;
        width: 100%;
    }

    .gallery__main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    /* ========== MOBILE VERTICAL LAYOUT ========== */

    /* Main Layout - Vertical stacking */
    .detail {
        padding: 15px 0;
    }

    .detail__layout {
        display: flex !important;
        flex-direction: column !important;
        padding: 15px;
        gap: 20px;
        box-shadow: none;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .detail__left,
    .detail__right {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    /* Header - Vertical stacking */
    .detail__header-row {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
        align-items: flex-start;
    }

    .detail__price-simple {
        font-size: 2.6rem;
        align-self: flex-start;
        color: #e53935;
        font-weight: 800;
    }

    .detail__product-title {
        font-size: 1.7rem;
        line-height: 1.3;
        margin: 0;
    }

    .detail__category {
        font-size: 1.1rem;
        padding: 4px 10px;
        margin-top: 5px;
    }

    /* Gallery - Full Width, Natural Aspect Ratio */
    .detail__gallery {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .gallery__main {
        width: 100%;
        min-height: auto;
        max-height: none;
        aspect-ratio: 16/9;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        overflow: hidden;
    }

    .gallery__main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

    /* Thumbnails - Horizontal Scroll */
    .gallery__thumbs-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
    }

    .gallery__thumbs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        padding: 5px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery__thumb {
        width: 65px;
        height: 65px;
        min-width: 65px;
        flex-shrink: 0;
        border-radius: 8px;
        scroll-snap-align: start;
    }

    .thumbs-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Specs Table - Full Width Vertical */
    .detail__specs {
        padding: 0;
        border-radius: 10px;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        overflow: hidden;
    }

    .spec-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        padding: 14px 16px;
        gap: 10px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #eee;
    }

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-label {
        font-size: 1.35rem;
        flex: 0 0 auto;
        min-width: 40%;
        max-width: 45%;
        line-height: 1.4;
        display: block;
        word-wrap: break-word;
        color: #666;
    }

    .spec-value {
        font-size: 1.4rem;
        text-align: right;
        word-break: break-word;
        font-weight: 700;
        flex: 1;
        min-width: 0;
        display: block;
        overflow-wrap: break-word;
        color: #333;
    }

    /* Action Buttons - Full Width Vertical Stack */
    .detail__buttons-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }

    .btn-buy {
        flex: none;
        width: 100%;
        padding: 18px 20px;
        font-size: 1.6rem;
        border-radius: 12px;
        font-weight: 700;
        order: 1;
    }

    .btn-cart {
        flex: none;
        width: 100%;
        padding: 16px 20px;
        font-size: 1.5rem;
        border-radius: 12px;
        order: 2;
    }

    .btn-info {
        flex: none;
        width: 100%;
        padding: 14px 16px;
        font-size: 1.4rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        order: 3;
    }

    .btn-info::after {
        content: "Xem ghi chú";
        font-size: 1.4rem;
    }

    .sold-badge {
        width: 100%;
        padding: 18px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    /* Special Tag - Full Width */
    .detail__special {
        width: 100%;
    }

    .special-tag {
        font-size: 1.35rem;
        padding: 10px 15px;
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Note Modal - Mobile Optimized */
    .note-modal__content {
        width: 94%;
        max-width: 360px;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .note-modal__title {
        font-size: 1.5rem;
    }

    .note-modal__body {
        font-size: 1.35rem;
        line-height: 1.6;
    }

    /* Related Accounts - Mobile Grid */
    .related-accounts {
        padding: 20px 15px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .related-accounts__title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .related-accounts__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-card {
        border-radius: 10px;
    }

    .related-card__image {
        height: 100px;
    }

    .related-card__info {
        padding: 12px;
    }

    .related-card__title {
        font-size: 1.3rem;
    }

    .related-card__price {
        font-size: 1.4rem;
    }
}

/* Extra small mobile devices (under 400px) */
@media (max-width: 400px) {
    .detail__layout {
        padding: 12px;
        gap: 15px;
    }

    .detail__product-title {
        font-size: 1.5rem;
    }

    .detail__price-simple {
        font-size: 2.2rem;
    }

    .detail__category {
        font-size: 1rem;
        padding: 3px 8px;
    }

    .gallery__main {
        aspect-ratio: 16/9;
        border-radius: 10px;
    }

    .gallery__thumb {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .thumbs-nav {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .spec-row {
        padding: 12px 14px;
    }

    .spec-label,
    .spec-value {
        font-size: 1.25rem;
    }

    .btn-buy {
        padding: 16px 18px;
        font-size: 1.5rem;
    }

    .btn-cart {
        padding: 14px 16px;
        font-size: 1.4rem;
    }

    .btn-info {
        padding: 12px 14px;
        font-size: 1.3rem;
    }

    .special-tag {
        font-size: 1.25rem;
        padding: 8px 12px;
    }

    .related-accounts__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-card__image {
        height: 140px;
    }

    .note-modal__content {
        width: 95%;
        padding: 16px;
    }
}

/* Price Section */
.detail__price {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.detail__price-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail__price-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.detail__price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Action Buttons */
.detail__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.detail__purchased-title {
    color: var(--danger);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}

.detail__btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.detail__btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 62, 218, 0.3);
}


.detail__btn--card,
.detail__btn--wallet {
    text-align: center;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail__btn--card:hover,
.detail__btn--wallet:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 62, 218, 0.3);
}

/* Info Section */
.detail__info {
    border-radius: var(--border-radius-lg);
    margin: 0 auto;
    margin-bottom: 30px;
    width: 80%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    background-color: var(--bg-light);
}

/* Modern Info Section Redesign */
.detail__info--modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.detail__info--modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #ff6b6b);
}

/* Price Badge */
.detail__price-badge {
    text-align: center;
    margin-bottom: 25px;
}

.price-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(14, 62, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.price-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.price-tag__label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.price-tag__value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.price-tag__value sup {
    font-size: 1.4rem;
    margin-left: 2px;
}

/* Special Description Highlight */
.detail__highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 3px 15px rgba(255, 152, 0, 0.15);
}

.detail__highlight i {
    color: #ff9800;
    font-size: 1.6rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.detail__highlight span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5d4037;
}

/* Info Grid - Card Style */
.detail__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Simple 2-Column Layout (Label: Value) */
.detail__info-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s;
}

.info-row:hover {
    background: rgba(14, 62, 218, 0.03);
}

.info-row:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* Remove bottom border from last 2 rows */
.info-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.info-row__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* Responsive for simple layout */
@media (max-width: 600px) {
    .detail__info-simple {
        grid-template-columns: 1fr;
    }

    .info-row:nth-child(odd) {
        border-right: none;
    }

    .info-row:last-child {
        border-bottom: none;
    }
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.info-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    flex-shrink: 0;
}

.info-card__icon i {
    font-size: 1.6rem;
    color: white;
}

.info-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card__label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

/* Note Section */
.detail__note {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #2196f3;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(33, 150, 243, 0.1);
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

.note-header i {
    color: #1976d2;
    font-size: 1.4rem;
}

.note-header span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1565c0;
}

.note-content {
    padding: 15px 20px;
    font-size: 1.4rem;
    color: #0d47a1;
    line-height: 1.6;
}

/* Legacy support */
.detail__info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail__info-row:last-child {
    border-bottom: none;
}

.detail__info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail__info-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
}

.detail__info-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Responsive for modern design */
@media (max-width: 768px) {
    .detail__info--modern {
        width: 95%;
        padding: 20px;
    }

    .price-tag {
        padding: 15px 30px;
    }

    .price-tag__value {
        font-size: 2.2rem;
    }

    .detail__info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .info-card {
        padding: 12px 15px;
    }

    .info-card__icon {
        width: 40px;
        height: 40px;
    }

    .info-card__icon i {
        font-size: 1.3rem;
    }

    .info-card__value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .detail__info-grid {
        grid-template-columns: 1fr;
    }
}

/* Images Section */
.detail__images {
    margin-top: 30px;
}

.detail__images-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.detail__images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.detail__images-link {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
}

.detail__images-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail__images-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail__images-link:hover .detail__images-item {
    transform: scale(1.05);
}

/* Account Detail Styles */
.account-detail {
    padding: 40px 0 60px;
    background-color: var(--bg-color);
}

.account-detail__wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* Price Cards */
.account-detail__price {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), #1a1a1a);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card__label {
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-card__value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Action Buttons */
.account-detail__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn--lg {
    padding: 12px 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn--lg i {
    font-size: 1.8rem;
}

/* Info Grid */
.account-detail__info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {

    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item__icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.6rem;
}

.info-item__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 90px;
}

.info-item__value {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Gallery Section */
.account-detail__gallery {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.gallery__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

.gallery__item:hover .gallery__zoom {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .detail__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .detail__info-row {
        grid-template-columns: 1fr;
    }

    .detail__price {
        display: grid;
        justify-content: center;
        gap: 20px;
    }

    .account-detail__price {
        grid-template-columns: 1fr;
    }

    .account-detail__actions {
        flex-wrap: wrap;
    }

    .btn--lg {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .account-detail {
        padding: 30px 0;
    }

    .account-detail__wrapper {
        padding: 20px;
    }

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

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

    .btn--lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .detail__info {
        width: 100%;
    }

    .account-detail__wrapper {
        padding: 15px;
    }

    .price-card {
        padding: 15px;
    }

    .price-card__value {
        font-size: 2rem;
    }

    .info-item {
        padding: 12px;
    }

    .gallery__title {
        font-size: 1.6rem;
    }
}

/* Modal Styles */
/* Update modal display property */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal__content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal__title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal__body {
    padding: 20px;
}

.modal__info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}


.modal__label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-light);
}

.modal__value {
    flex: 1;
    font-weight: 500;
}

.modal__value--price {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal__input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.4rem;
}

.modal__input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 103, 233, 0.1);
}

.modal__input--captcha {
    max-width: 200px;
}

.modal__captcha-img {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.modal__notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.modal__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal__btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__btn--card {
    background: var(--accent-color);
    color: white;
    border: none;
}

.modal__btn--wallet {
    background: var(--primary-color);
    color: white;
    border: none;
}

.modal__btn--close {
    background: #eee;
    color: var(--text-color);
    border: none;
}

.modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal__header {
        padding: 16px;
    }

    .modal__title {
        font-size: 1.6rem;
    }

    .modal__body {
        padding: 16px;
    }

    .modal__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .modal__label {
        font-size: 1.3rem;
    }

    .modal__value {
        font-size: 1.4rem;
    }

    .modal__value--price {
        font-size: 2rem;
    }

    .modal__input {
        font-size: 1.4rem;
        padding: 14px;
    }

    .modal__notice {
        padding: 12px;
        font-size: 1.3rem;
    }

    .modal__footer {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .modal__btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.5rem;
        border-radius: 8px;
    }

    .modal__btn--check {
        margin-top: 10px;
    }

    .modal__discount {
        margin: 15px 0;
    }

    .modal__discount .modal__row {
        gap: 10px;
    }

    .modal__discount-message {
        margin-top: 10px;
        font-size: 1.3rem;
    }
}

/* ========================================
   IMAGE CAROUSEL STYLES
   ======================================== */
.images-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
}

.carousel-slide {
    flex: 0 0 50%;
    min-width: 50%;
    padding: 0 8px;
    box-sizing: border-box;
}

.carousel-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Center single image */
.carousel-track.single-image {
    justify-content: center;
}

.carousel-track.single-image .carousel-slide {
    flex: 0 0 auto;
    min-width: auto;
    max-width: 400px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot:hover {
    background: #bbb;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ========================================
   RELATED ACCOUNTS STYLES
   ======================================== */
.related-accounts {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.related-accounts__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-accounts__title i {
    font-size: 1.8rem;
}

.related-accounts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.related-card__image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-card__image img {
    transform: scale(1.1);
}

.related-card__hot {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.related-card__info {
    padding: 15px;
}

.related-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.related-card__desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Responsive for Carousel */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-image {
        height: 220px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .related-accounts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 180px;
    }

    .images-carousel {
        gap: 8px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .related-accounts__grid {
        grid-template-columns: 1fr;
    }

    .related-card__image {
        height: 120px;
    }
}

/* ========================================
   CUSTOM LIGHTBOX STYLES
   ======================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-size: 1.4rem;
    margin-top: 15px;
    opacity: 0.9;
}

.lightbox-counter {
    color: white;
    font-size: 1.2rem;
    margin-top: 5px;
    opacity: 0.7;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Zoom icon on carousel slides */
.carousel-slide {
    position: relative;
    cursor: pointer;
}

.image-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-slide:hover .image-zoom-icon {
    opacity: 1;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}