/* PDP Specific Styles */

/* Hero Section */
.product-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.scent-portrait {
    position: relative;
    background: linear-gradient(135deg, var(--hero-gradient-start, #faf8f3), var(--hero-gradient-end, #f5f1e8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(180deg); opacity: 0; }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0.1) 100%);
    opacity: 0.8;
}

.hero-content {
    padding: 120px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #8b5a3c;
    text-decoration: none;
}

.product-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.1;
}

.quick-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg, #8b5a3c);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    max-width: fit-content;
}

.product-tagline {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
}

.price-section {
    margin-bottom: 40px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #8b5a3c;
    display: block;
}

.volume {
    font-size: 16px;
    color: #666;
    margin-top: 4px;
}

.bottle-viewer {
    margin: 40px 0;
}

.bottle-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.bottle-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 20px 20px 40px 40px;
    position: relative;
    cursor: grab;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.bottle-3d:active {
    cursor: grabbing;
}

.bottle-3d:hover {
    transform: rotateY(15deg) rotateX(5deg);
}

.bottle-shine {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    border-radius: 10px;
    opacity: 0.7;
}

.bottle-reflection {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2), transparent);
    border-radius: 50%;
}

.interaction-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    bottom: 48px;
    right: 48px;
    left: 48px;
}

/* Scent Trail */
.scent-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.trail-svg {
    position: absolute;
    top: 0;
    left: 0;
}

/* Notes Section */
.notes-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.notes-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.note-pyramid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.note-layer {
    background: #faf8f3;
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.note-layer:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    background: white;
}

.note-layer.expanded {
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.layer-label {
    font-size: 20px;
    font-weight: 600;
    color: #8b5a3c;
    margin-bottom: 16px;
}

.layer-content {
    position: relative;
}

.note-swirls {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, rgba(139,90,60,0.1), transparent);
    border-radius: 50%;
    animation: swirl 8s linear infinite;
}

.note-layer:hover .note-swirls,
.note-layer.expanded .note-swirls {
    opacity: 1;
}

@keyframes swirl {
    from { transform: rotate(0deg) scale(0.5); }
    to { transform: rotate(360deg) scale(1.2); }
}

.note-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.note-tag {
    background: #8b5a3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.layer-time {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-layer:hover .layer-time,
.note-layer.expanded .layer-time {
    opacity: 1;
}

.play-sound-btn {
    display: block;
    margin: 48px auto 0;
    background: #f0f0f0;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-sound-btn:hover {
    background: #8b5a3c;
    color: white;
    transform: scale(1.05);
}

/* Mood Board Section */
.mood-board-section {
    padding: 100px 0;
    background: #faf8f3;
}

.mood-board-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.mood-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.mood-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.mood-image {
    aspect-ratio: 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mood-image:hover {
    transform: scale(1.05);
}

.mood-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mood-image:hover::after {
    opacity: 1;
}

.color-palette {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.color-palette h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.palette-strip {
    display: flex;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.color-swatch {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scaleY(1.1);
    z-index: 2;
}

.share-palette-btn {
    background: #8b5a3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-palette-btn:hover {
    background: #6d4530;
    transform: translateY(-2px);
}

/* Provenance Section */
.provenance-section {
    padding: 100px 0;
    background: white;
}

.provenance-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.world-map {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.map-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #8b5a3c;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.map-dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 10;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 90, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(139, 90, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 90, 60, 0); }
}

.ingredient-popup {
    position: absolute;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 300px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 20;
}

.ingredient-popup.active {
    opacity: 1;
    pointer-events: all;
}

.ingredient-popup h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #8b5a3c;
}

.ingredient-popup p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Performance Section */
.performance-section {
    padding: 100px 0;
    background: #faf8f3;
}

.performance-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.meters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.meter {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.meter h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.meter-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5a3c, #6d4530);
    border-radius: 6px;
    width: 0%;
    transition: width 1s ease;
}

.meter-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Social Proof Section */
.social-proof-section {
    padding: 100px 0;
    background: white;
}

.social-proof-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.live-counter {
    background: #1a1a1a;
    color: white;
    padding: 20px 32px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.counter-glow {
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139,90,60,0.3), transparent);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.counter-text {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.location, .archetype {
    color: #8b5a3c;
    font-weight: 600;
}

.photo-mosaic {
    margin-bottom: 64px;
}

.mosaic-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #8b5a3c;
    color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.photo-tile {
    aspect-ratio: 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-tile:hover {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-tile:hover .photo-overlay {
    transform: translateY(0);
}

.blind-test-reviews h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.review-card {
    background: #faf8f3;
    padding: 32px;
    border-radius: 16px;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 48px;
    color: #8b5a3c;
    opacity: 0.3;
    font-family: serif;
}

.review-text {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Layering Section */
.layering-section {
    padding: 100px 0;
    background: #faf8f3;
}

.layering-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.layering-sandbox {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.blend-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.base-selector label,
.topper-selector label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.base-selector select,
.topper-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.base-selector select:focus,
.topper-selector select:focus {
    outline: none;
    border-color: #8b5a3c;
}

.blend-result {
    border-top: 2px solid #f0f0f0;
    padding-top: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blend-result.active {
    opacity: 1;
}

.blended-pyramid {
    margin-bottom: 32px;
    /* Similar styling to note pyramid but smaller */
}

.blend-price {
    text-align: center;
}

.total-price {
    font-size: 28px;
    font-weight: 700;
    color: #8b5a3c;
    display: block;
    margin-bottom: 16px;
}

.add-bundle-btn {
    background: #8b5a3c;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-bundle-btn:hover {
    background: #6d4530;
    transform: translateY(-2px);
}

/* Sustainability Section */
.sustainability-section {
    padding: 100px 0;
    background: white;
}

.sustainability-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1a1a1a;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.sustainability-card {
    background: #faf8f3;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.sustainability-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.toggle-view {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.view-toggle {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle.active {
    background: #8b5a3c;
    color: white;
    border-color: #8b5a3c;
}

.view-content {
    transition: all 0.3s ease;
}

.view-content.hidden {
    display: none;
}

.big-number {
    font-size: 36px;
    font-weight: 700;
    color: #8b5a3c;
    display: block;
}

.description {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.story-view p {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
}

.stamp-seal {
    background: #8b5a3c;
    color: white;
    padding: 16px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    animation: stampIn 0.5s ease forwards;
    transform: scale(0) rotate(-10deg);
}

@keyframes stampIn {
    to {
        transform: scale(1) rotate(0deg);
    }
}

/* Purchase Section */
.purchase-section {
    padding: 80px 0;
    background: #faf8f3;
    position: relative;
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 16px 24px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.floating-action-bar.active {
    transform: translateY(0);
}

.floating-action-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.floating-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.floating-product-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--hero-gradient-start, #faf8f3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-product-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.floating-product-details .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #8b5a3c);
    margin: 0;
}

.floating-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.floating-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-qty-btn:hover {
    border-color: var(--primary-color, #8b5a3c);
    color: var(--primary-color, #8b5a3c);
}

.floating-qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
}

.floating-add-to-cart {
    background: var(--primary-color, #8b5a3c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-add-to-cart:hover {
    background: var(--secondary-color, #6d4530);
    transform: translateY(-2px);
}

.purchase-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.product-summary h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-summary p {
    color: #666;
    margin-bottom: 16px;
}

.product-summary .price {
    font-size: 32px;
    font-weight: 700;
    color: #8b5a3c;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    border-color: #8b5a3c;
    color: #8b5a3c;
}

#quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8b5a3c;
    border-color: #8b5a3c;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-options {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-content {
        padding: 48px 24px;
    }
    
    .product-title {
        font-size: 36px;
    }
    
    .bottle-container {
        width: 200px;
        height: 300px;
    }
    
    .hero-actions {
        position: static;
        margin-top: 32px;
    }
    
    .purchase-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blend-controls {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .meters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .mood-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    /* Floating Action Bar Mobile */
    .floating-action-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .floating-product-info {
        justify-content: center;
    }
    
    .floating-actions {
        justify-content: center;
    }
    
    .floating-add-to-cart {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* CSS Custom Properties for Dynamic Theming */
:root {
    --primary-color: #8b5a3c;
    --secondary-color: #6d4530;
    --accent-color: #f5f1e8;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --background: #ffffff;
    --background-alt: #faf8f3;
}

/* Archetype-specific color overrides will be applied via JavaScript */ 