/* Product Detail Page */
.detail-section {
    padding: 80px 40px 80px;
    background: var(--white);
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Gallery */
.detail-gallery {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    width: 600px;
    height: 550px;
    max-width: 100%;
    background: var(--light-gray);
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    cursor: zoom-in;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
}

.gallery-placeholder p {
    font-size: 1.2rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

.gallery-nav-bar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.gallery-nav {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 0.75rem;
    flex-shrink: 0;
}

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

.gallery-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.gallery-thumbs-wrapper {
    position: relative;
    max-width: 600px;
    overflow: hidden;
}

.gallery-thumbs-wrapper .thumb-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-thumbs-wrapper .thumb-scroll-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.gallery-thumbs-wrapper .thumb-scroll-left { left: 0; }
.gallery-thumbs-wrapper .thumb-scroll-right { right: 0; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2px;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    min-width: 80px;
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--primary-green);
}

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

/* Image zoom overlay */
.gallery-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-zoom-container {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    touch-action: none;
}

.gallery-zoom-img {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    cursor: zoom-in;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    transition: cursor 0.1s;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
}

.gallery-zoom-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10001;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.gallery-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-zoom-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10001;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.gallery-zoom-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-zoom-nav.prev { left: 20px; }
.gallery-zoom-nav.next { right: 20px; }

.gallery-zoom-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10001;
    letter-spacing: 0.03em;
}

/* Detail Info */
.detail-info {
    padding: 20px 0;
}

.detail-brand {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 15px;
}

.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 25px;
    line-height: 1.2;
}

.detail-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 40px;
}

.detail-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.btn-primary {
    flex: 1;
    padding: 24px 40px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
}

.btn-secondary {
    padding: 12px 20px;
    background: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.detail-meta {
    border-top: 1px solid var(--cream-dark);
    padding-top: 30px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.meta-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--primary-green);
    font-weight: 500;
}

/* Recommendations */
.recommendations {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid var(--cream-dark);
}

.recommendations h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: var(--black);
    margin-bottom: 40px;
    text-align: center;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
