/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================================== */

/* Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: var(--nav-height);
    /* Nav spacing offset */
}

/* Left: Gallery */
.product-gallery {
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    background: #e8e6df;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.thumbnail-strip {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #e0dfd9;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

/* Right: Details Container */
.product-details {
    padding: 4rem 10%;
    background: var(--bg-color);
}

.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.product-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.origin-tag {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.origin-tag .divider {
    color: #ccc;
    margin: 0 0.5rem;
}

.product-details .price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weight-note {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.description-block {
    margin-bottom: 3rem;
}

.description-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Tasting Notes */
.tasting-notes {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.note-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.note-item .icon {
    font-size: 1.5rem;
}

/* Purchase Area */
.purchase-area {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.qty-selector button {
    background: none;
    border: none;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    height: 100%;
    color: #555;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
}

.qty-selector input:focus {
    outline: none;
}

/* Hide specific number arrows */
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-large {
    flex: 1;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Brewing Specs */
.brewing-guide h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-card .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #888;
}

.spec-card .val {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 950px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: relative;
        top: 0;
        height: 60vh;
    }

    .product-details {
        padding: 3rem 2rem;
    }

    .purchase-area {
        flex-direction: column;
    }

    .qty-selector {
        height: 60px;
        justify-content: center;
    }
}