/* ===== COCKTAIL DETAILS PAGE STYLES ===== */

:root {
    --havana-red: #D42E12;
    --havana-red-light: #E5261E;
    --havana-yellow: #FFFF00;
    --havana-black: #000000;
    --havana-white: #FFFFFF;
    --havana-gray: #D9D9D9;
    --havana-dark-gray: #232323;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 572px;
    overflow: hidden;
    background-color: var(--havana-black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-title {
    position: absolute;
    bottom: 5rem;
    left: 1rem;
}

.hero-title-bg {
    background-color: var(--havana-black);
    padding: 0;
}

.hero-title h1 {
    color: var(--havana-white);
    font-size: 85px;
    font-weight: 900;
    line-height: 1;
}

/* ===== PRODUCT FILTER SECTION ===== */
.product-filter {
    width: 100%;
    background-color: var(--havana-black);
    padding: 4rem 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.toggle-button {
    width: 41px;
    height: 74px;
    background-color: var(--havana-white);
    border-radius: 20.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.toggle-button:hover {
    background-color: #f0f0f0;
}

.toggle-dot {
    width: 24px;
    height: 24px;
    background-color: var(--havana-red);
    border-radius: 50%;
    position: absolute;
    top: 7px;
    transition: all 0.3s ease;
}

.filter-title {
    color: var(--havana-white);
    font-size: 85px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.party-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--havana-white);
}

.cocktail-shaker {
    margin-bottom: 0;
}

.party-text {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    text-align: left;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ===== PRODUCT CAROUSEL ===== */
.product-carousel-container {
    overflow: visible;
    position: relative;
    width: 100%;
    cursor: grab;
    padding-top: 60px;
}

.product-carousel-container:active {
    cursor: grabbing;
}

.product-carousel-track {
    display: flex;
    gap: 2rem;
    align-items: start;
    transition: transform 0.3s ease;
    user-select: none;
    width: max-content;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item.selected .product-circle {
    background-color: var(--havana-white) !important;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item:hover .product-circle img {
    transform: rotate(-5deg) scale(1.1);
}

.product-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.product-circle.red {
    background-color: var(--havana-red);
}

.product-circle.white {
    background-color: var(--havana-white);
}


.product-circle img {
    height: 280px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 120%;
    transform: rotate(-5deg);
    margin-top: -60px;
}

.product-text {
    text-align: center;
    margin-top: 1rem;
}

.product-brand {
    color: var(--havana-white);
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
}

.product-name {
    color: var(--havana-white);
    font-size: 40px;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
}

/* ===== COCKTAIL SECTION ===== */
.cocktail-section {
    position: relative;
    width: 100%;
    background-color: var(--havana-red);
    overflow: hidden;
}

/* Content text styling - same as other pages */
.content-text p,
p.text5,
#main-content p.text5,
.view2 p.text5,
main p.text5 {
    line-height: 32px !important;
    font-size: 32px;
    margin-top: 0px !important;
    color: var(--havana-black) !important;
    font-family: 'Rotis Sans Serif W02', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    width: 100%;
}

/* Cocktail Grid Animation */
.cocktail-grid {
    transition: opacity 0.3s ease;
}

.cocktail-grid.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.cocktail-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.cocktail-item {
    animation: cocktailSlideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cocktail-item:nth-child(1) { animation-delay: 0.1s; }
.cocktail-item:nth-child(2) { animation-delay: 0.2s; }
.cocktail-item:nth-child(3) { animation-delay: 0.3s; }
.cocktail-item:nth-child(4) { animation-delay: 0.4s; }
.cocktail-item:nth-child(5) { animation-delay: 0.5s; }
.cocktail-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes cocktailSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) scale(0.95);
    }
    80% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shake animation for product selection */
.product-item.selected {
    animation: bottleShake 0.5s ease;
}

.product-item.selected .product-circle {
    animation: circlePulse 0.8s ease;
}

@keyframes bottleShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes circlePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Loading animation for cocktail grid */
.cocktail-grid.loading {
    position: relative;
}

.cocktail-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--havana-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cocktail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.56;
    filter: blur(3.4px);
    background-image: url('../assets/cocktail_section_bg.jpg');
    background-size: cover;
    background-position: center;
    mix-blend-mode: multiply;
}

.cocktail-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

.cocktail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.cocktail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.cocktail-item:hover {
    transform: translateY(-10px);
    text-decoration: none;
}

.cocktail-image {
    margin-bottom: 2rem;
    width: 304px;
    height: 494px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cocktail-image img {
    width: 304px;
    height: 494px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(10px 0 0 var(--havana-white)) 
            drop-shadow(-10px 0 0 var(--havana-white)) 
            drop-shadow(0 10px 0 var(--havana-white)) 
            drop-shadow(0 -10px 0 var(--havana-white))
            drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.cocktail-item:hover .cocktail-image img {
    transform: scale(1.05);
    filter: drop-shadow(10px 0 0 var(--havana-white)) 
            drop-shadow(-10px 0 0 var(--havana-white)) 
            drop-shadow(0 10px 0 var(--havana-white)) 
            drop-shadow(0 -10px 0 var(--havana-white))
            drop-shadow(0 20px 40px rgba(255, 255, 255, 0.6)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.cocktail-name {
    color: var(--havana-white);
    font-size: 64px;
    font-weight: 900 !important;
    font-family: var(--font-heading) !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    font-style: normal !important;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    width: 100%;
    background-color: var(--havana-white);
    padding: 4rem 0;
}

.content-space {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-title {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
}

.red-title {
    color: var(--havana-red);
}

.black-title {
    color: var(--havana-black);
}

.content-text {
    max-width: 1200px;
}

.content-text p {
    color: var(--havana-black);
    font-size: 32px;
    line-height: 1.6;
    font-family: serif;
    margin-bottom: 1rem;
}

/* Estilos para H1-H6 dentro de content-text - Sin enlace (black-title) */
.content-text h1:not(:has(a)),
.content-text h2:not(:has(a)),
.content-text h3:not(:has(a)),
.content-text h4:not(:has(a)),
.content-text h5:not(:has(a)),
.content-text h6:not(:has(a)) {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    color: var(--havana-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Estilos para H1-H6 dentro de content-text - Con enlace (red-title) */
.content-text h1:has(a),
.content-text h2:has(a),
.content-text h3:has(a),
.content-text h4:has(a),
.content-text h5:has(a),
.content-text h6:has(a) {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    color: var(--havana-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Estilos para enlaces dentro de H1-H6 en content-text */
.content-text h1 a,
.content-text h2 a,
.content-text h3 a,
.content-text h4 a,
.content-text h5 a,
.content-text h6 a {
    font-size: 64px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    line-height: 1.1 !important;
    color: var(--havana-red) !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.content-text h1 a:hover,
.content-text h2 a:hover,
.content-text h3 a:hover,
.content-text h4 a:hover,
.content-text h5 a:hover,
.content-text h6 a:hover {
    color: var(--havana-red) !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.content-text h1 a:visited,
.content-text h2 a:visited,
.content-text h3 a:visited,
.content-text h4 a:visited,
.content-text h5 a:visited,
.content-text h6 a:visited {
    color: var(--havana-red) !important;
    font-family: inherit !important;
}

.content-text h1 a:focus,
.content-text h2 a:focus,
.content-text h3 a:focus,
.content-text h4 a:focus,
.content-text h5 a:focus,
.content-text h6 a:focus {
    font-family: inherit !important;
    color: var(--havana-red) !important;
}


/* ===== RUMS CAROUSEL SECTION ===== */
.rums-carousel-section {
    padding: 20px 0;
    position: relative;
    background-color: var(--havana-red);
    z-index: 60;
}

.rums-carousel-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px 40px;
}

.rums-title {
    color: #FFFFFF;
    font-size: 85px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 64px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.rums-carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow: visible;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 64px;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
}

.rum-item {
    text-align: center;
    flex-shrink: 0;
}

.rum-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    background-color: #8B0000;
    z-index: 1;
}

.rum-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: auto;
    max-height: 160%;
    object-fit: contain;
    z-index: 2;
}

.rum-text-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rum-brand {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    font-style: italic;
    color: #BB9C4B;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.rum-name {
    font-size: 43px;
    line-height: 1.1;
    font-weight: 900;
    font-style: italic;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
    font-family: var(--font-heading);
}

.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-button.prev {
    left: 0;
}

.carousel-nav-button.next {
    right: 0;
}

.carousel-nav-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .hero-title {
        left: 164px;
    }
    
    .cocktail-name {
        font-size: 48px;
    }
    
    .content-title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .product-carousel-track {
        gap: 2rem;
    }
    
    .cocktail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .cocktail-name {
        font-size: 64px;
    }
    
    .content-title {
        font-size: 64px;
    }
}

@media (max-width: 1023px) {
    .product-carousel-track {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .product-carousel-track {
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title h1 {
        font-size: 48px;
    }
    
    .filter-title {
        font-size: 48px;
    }
    
    .party-text {
        font-size: 28px;
    }
    
    .product-brand {
        font-size: 24px;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .cocktail-name {
        font-size: 36px;
    }
    
    .content-title {
        font-size: 36px;
    }
    
    .content-text p {
        font-size: 24px;
    }
} 