/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Banner Section */
.banner-section {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ad Banner Section */
.ad-banner-section {
    width: 100%;
    overflow: hidden;
    margin: 50px 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.ad-banner-image {
    max-width: 1600px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Fullscreen Banner Section */
.fullscreen-banner {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.fullscreen-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    text-align: center;
    background-color: #fafafa;
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Bash Flavours Section */
.bash-flavours {
    padding: 80px 20px;
}

.flavours-carousel-wrapper {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

.flavours-grid {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: block;
}

/* Debug: Show if grid is empty */
.flavours-grid:empty::after {
    content: 'No products loaded. Check console for errors.';
    display: block;
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 14px;
}

.flavour-group {
    display: none !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    min-height: 900px;
    opacity: 0;
    visibility: hidden;
}

.flavour-group.active {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

.flavour-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 550px;
    aspect-ratio: 1 / 1.2;
    perspective: 1000px;
    cursor: pointer;
}

.flavour-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flavour-card:hover .flavour-card-inner,
.flavour-card.flipped .flavour-card-inner {
    transform: rotateY(180deg);
}

.flavour-card-front,
.flavour-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.flavour-card-back {
    transform: rotateY(180deg);
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.flavour-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #f0f0f0;
    display: block;
    overflow: hidden;
    position: relative;
}

.flavour-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f0f0f0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.flavour-image img[src=""] {
    display: none;
}

/* Ensure image container is visible */
.flavour-card-front {
    background-color: #f0f0f0;
}

.flavour-card-front .flavour-image {
    background-color: #f0f0f0;
}

.flavour-description {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: left;
    overflow-y: auto;
    max-height: 100%;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: #999;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Upgrade Section */
.upgrade-section {
    padding: 80px 20px;
    background-color: #fafafa;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 1;
    transition: background 0.3s ease;
}

.product-card:hover .product-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    z-index: 2;
    color: var(--secondary-color);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-divider {
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    margin-bottom: 8px;
}

.product-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card:hover .product-tag {
    opacity: 1;
    visibility: visible;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card:hover .product-badge {
    opacity: 1;
    visibility: visible;
}

.product-badge::before {
    content: '★';
    font-size: 10px;
}

.product-hover-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 4;
    border-radius: 0 0 8px 8px;
}

.product-card:hover .product-hover-tag {
    transform: translateY(0);
}


.product-hover-tag-text {
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    margin: 0;
    text-align: left;
}

.product-badge {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    border-radius: 12px;
}

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

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: var(--secondary-color);
    padding: 60px 20px 20px;
    scroll-margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.certificate-placeholder {
    width: 100%;
    max-width: 200px;
    height: 150px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.certificate-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #888;
}

.scroll-top {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.scroll-top:hover {
    color: var(--secondary-color);
}

/* Placeholder Images */
.icon-placeholder,
.cert-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
        position: relative;
    }

    .header-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        border-top: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .ad-banner-section {
        margin: 40px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .flavour-group {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
        min-height: auto;
    }

    .flavour-card {
        min-height: 220px;
    }

    .flavour-card-inner {
        transition: transform 0.5s;
    }

    .flavour-card-back {
        padding: 20px;
    }

    .flavour-description {
        font-size: 13px;
        line-height: 1.6;
    }

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

    .product-image {
        height: 180px;
    }

    .product-content {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-tag {
        font-size: 11px;
    }

    .filter-tabs {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo a {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .mobile-menu-toggle {
        padding: 8px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .main-nav a {
        font-size: 16px;
        padding: 12px 0;
        display: block;
    }

    .banner-image,
    .ad-banner-image {
        width: 100%;
        height: auto;
    }

    .ad-banner-section {
        margin: 30px 0;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.4;
    }

    .bash-flavours,
    .upgrade-section,
    .why-choose {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    .flavour-group {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 15px;
    }

    .flavour-card {
        min-height: 200px;
    }

    .flavour-card-back {
        padding: 15px;
    }

    .flavour-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .flavour-image {
        height: 250px;
    }

    .product-image {
        height: 150px;
    }

    .product-content {
        padding: 12px 15px;
    }

    .product-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .product-divider {
        width: 25px;
        margin-bottom: 6px;
    }

    .product-tag {
        font-size: 11px;
    }

    .product-hover-tag {
        padding: 12px 15px;
    }

    .product-hover-tag-text {
        font-size: 11px;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-card h3 {
        font-size: 22px;
    }

    .carousel-indicators {
        margin-top: 30px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        width: 24px;
    }

    .flavour-content {
        padding: 20px;
    }

    .flavour-title {
        font-size: 20px;
    }

    .product-name {
        font-size: 18px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .fullscreen-banner {
        margin: 0;
    }

    .fullscreen-banner-image {
        width: 100%;
        height: auto;
    }

    .carousel-indicators {
        flex-wrap: wrap;
        gap: 8px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 150px;
    }

    .product-content {
        padding: 12px 15px;
    }

    .product-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .product-divider {
        width: 25px;
        margin-bottom: 6px;
    }

    .product-tag {
        font-size: 11px;
    }

    .product-hover-tag {
        padding: 12px 15px;
    }

    .product-hover-tag-text {
        font-size: 11px;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-card h3 {
        font-size: 22px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 20px;
    min-height: calc(100vh - 200px);
}

.contact-intro {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.submit-btn {
    width: 100%;
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    padding: 40px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.info-item a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Mobile Responsive for Contact Page */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container,
    .contact-info {
        padding: 30px 20px;
    }

    .contact-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 15px;
    }

    .contact-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .contact-form-container,
    .contact-info {
        padding: 25px 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .contact-info h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .info-item {
        margin-bottom: 25px;
    }
}
