/* Custom Styles for Hadies Crust */
:root {
    --cream: #F3C9CF;
    --pink: #9B4B53;
    --pink-dark: #9B4B53;
    --brown: #9B4B53;
    --brown-light: #9B4B53;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--brown);
    /* Windows & Cross-platform Font Rendering Fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: always;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.bg-cream {
    background-color: var(--cream);
}

.bg-pink-100 {
    background-color: #F3C9CF;
}

.text-brown {
    color: var(--brown);
}

.text-pink-600 {
    color: #9B4B53;
}

/* Navigation Links */
.nav-link {
    color: var(--brown);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #9B4B53, #9B4B53);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: #9B4B53;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #9B4B53;
    background: linear-gradient(135deg, rgba(155, 75, 83, 0.1), rgba(155, 75, 83, 0.1));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #9B4B53, #9B4B53);
    border-radius: 2px;
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
    opacity: 1;
    overflow: hidden;
}

/* Desktop hero section */
@media (min-width: 769px) {
    .hero-slider-section {
        aspect-ratio: 2.55 / 1;
        min-height: 300px;
        max-height: 800px;
    }
}

.hero-slider-section.hidden {
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* Hero slide image container */
.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Desktop: Use cover for full background */
@media (min-width: 768px) {
    .hero-slide-image {
        background-size: cover;
    }
}

/* Mobile: Ensure proper image display */
@media (max-width: 767px) {
    .hero-slide-image {
        background-size: cover;
        background-position: center center;
    }
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.banner-dot.active {
    background-color: white !important;
    opacity: 1 !important;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.banner-dot:not(.active) {
    opacity: 0.5;
}

.banner-dot:hover {
    transform: scale(1.2);
    opacity: 0.75 !important;
}

/* Slide Content Transitions */
.slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-content.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Reviews Slider Styles */
.reviews-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.reviews-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.review-card {
    min-height: 280px;
}

.review-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot:hover {
    transform: scale(1.2);
}

#prev-review:disabled,
#next-review:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(219, 112, 147, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    z-index: 1;
}

.hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .hero-title {
        letter-spacing: -0.01em;
    }
}

/* Fade-in Up Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-1 {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s forwards;
    opacity: 0;
}

/* Legacy Animations (for other sections) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    transition: transform 0.5s ease;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 75, 83, 0.15);
}

.product-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Product Image Container */
.product-card .aspect-\\[4\\/3\\],
.product-card .md\\:h-52 {
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.product-card > a {
    display: block;
    position: relative;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
}

.product-card .aspect-\\[4\\/3\\] img,
.product-card .md\\:h-52 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.product-card > div:last-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Product Category Badge */
.product-card .absolute.top-3.right-3 {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 15;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
    line-height: 1.3;
    border-radius: 9999px;
    display: inline-block;
}

/* Add to Cart Button */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    background: linear-gradient(135deg, #9B4B53 0%, #7A3A41 100%) !important;
    border: none !important;
    cursor: pointer !important;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #7A3A41 0%, #6B343A 100%) !important;
    transform: scale(1.05) !important;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:active {
    transform: scale(0.95) !important;
}

.add-to-cart-btn svg {
    flex-shrink: 0;
}

.add-to-cart-btn span {
    white-space: nowrap;
}

/* Product Detail Page Add to Cart Button */
#add-to-cart-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    background: linear-gradient(135deg, #9B4B53 0%, #7A3A41 100%) !important;
    border: none !important;
    cursor: pointer !important;
}

#add-to-cart-btn:hover {
    background: linear-gradient(135deg, #7A3A41 0%, #6B343A 100%) !important;
}

/* Quantity Buttons */
#decrease-qty,
#increase-qty {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

#decrease-qty svg,
#increase-qty svg {
    display: block !important;
    visibility: visible !important;
}

/* Featured Products Slider */
.featured-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-slider-track {
    display: flex;
    will-change: transform;
}

.featured-slide {
    width: 100%;
    flex-shrink: 0;
}

/* Responsive slide widths - calculated dynamically by JavaScript */
.featured-slide {
    flex: 0 0 auto;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Navigation */
#prev-featured:disabled,
#next-featured:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot:hover {
    transform: scale(1.2);
}

/* Review Cards */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Bounce Slow Animation */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* Category Cards Enhanced */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.category-card:hover::before {
    left: 100%;
}

/* Enhanced Specialty Cards */
.specialty-card {
    position: relative;
    overflow: hidden;
}

.specialty-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.specialty-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Statistics Section */
.stat-number {
    background: linear-gradient(135deg, #9B4B53, #9B4B53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Location Popup Styles */
#location-popup {
    animation: fadeIn 0.3s ease-out;
}

.location-popup-content {
    animation: slideUp 0.4s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 75, 83, 0.3) transparent;
}

.location-popup-content::-webkit-scrollbar {
    width: 8px;
}

.location-popup-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.location-popup-content::-webkit-scrollbar-thumb {
    background: rgba(155, 75, 83, 0.4);
    border-radius: 10px;
}

.location-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 75, 83, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Location Select Dropdown */
#location-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239B4B53'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

#location-select:focus {
    border-color: #9B4B53;
    box-shadow: 0 0 0 3px rgba(155, 75, 83, 0.1);
    outline: none;
}

#location-select:hover {
    border-color: #7A3A41;
}

/* Order Type Buttons */
.order-type-btn {
    transition: all 0.3s ease;
}

.order-type-btn:active {
    transform: scale(0.98);
}

.quick-location-btn {
    transition: all 0.3s ease;
}

.quick-location-btn:active {
    transform: scale(0.95);
}

/* Horizontal Categories Scroll Section */
.categories-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 75, 83, 0.3) transparent;
}

.categories-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(155, 75, 83, 0.5);
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 75, 83, 0.7);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Categories Navigation Bar */
.categories-nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-behavior: smooth;
}

.categories-nav-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-nav-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.categories-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.categories-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.category-nav-item {
    transform: scale(1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-nav-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.category-nav-item.active {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Categories Nav Bar Responsive Top Position */
.categories-nav-bar {
    top: 80px;
}

@media (min-width: 768px) {
    .categories-nav-bar {
        top: 100px;
    }
}

/* Sticky Categories Bar */
#categories-nav-bar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Category Icon Items */
.category-icon-item {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-icon-item:hover {
    transform: translateY(-5px);
}

/* Category Arch Shape */
.category-arch {
    width: 140px;
    height: 180px;
    position: relative;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-arch:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(155, 75, 83, 0.4);
}

.category-arch-active {
    box-shadow: 0 8px 25px rgba(155, 75, 83, 0.6);
}

/* Category Icon Wrapper */
.category-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Category Icon */
.category-icon {
    width: 50px;
    height: 50px;
    color: #9B4B53;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.category-arch:hover .category-icon {
    color: #9B4B53;
    transform: scale(1.1);
}

.category-arch-active .category-icon {
    color: white;
}

/* Category Label */
.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #9B4B53;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.category-arch:hover .category-label {
    color: #9B4B53;
}

.category-arch-active .category-label {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-arch {
        width: 120px;
        height: 160px;
        padding: 15px 10px;
    }

    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-label {
        font-size: 11px;
    }

    /* Mobile Hero Section */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    /* Mobile Product Cards */
    .product-card {
        margin-bottom: 1rem;
    }

    /* Mobile Badges - Hide or Reduce Size */
    .hero-slide .absolute {
        font-size: 0.75rem;
    }

    /* Mobile Navigation */
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    /* Mobile Footer */
    footer {
        padding: 2rem 1rem !important;
    }
    
    /* Mobile Footer Grid - Better Spacing */
    footer .grid {
        gap: 2rem !important;
    }
    
    /* Mobile Footer Columns - Full Width */
    footer .grid > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Footer Text Wrapping */
    footer p,
    footer li,
    footer span,
    footer a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    /* Mobile Footer Logo */
    footer img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile Footer Social Icons */
    footer .flex.items-center.space-x-4 {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
    
    /* Mobile Footer Contact Info */
    footer .flex.items-start.space-x-3 {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Mobile Footer Business Hours */
    footer .flex.justify-between.items-center {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    /* Mobile Footer Newsletter */
    footer .flex.flex-col.sm\\:flex-row {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    footer input[type="email"] {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    footer button {
        width: 100% !important;
    }
    
    /* Mobile Footer Bottom Bar */
    footer .border-t {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    footer .flex.flex-col.md\\:flex-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    footer .flex.items-center.space-x-4 {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    /* Mobile Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile Buttons */
    .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
    }

    /* Mobile Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile Statistics */
    .stat-number {
        font-size: 2.5rem !important;
    }

    /* Mobile Slider Navigation */
    #prev-featured,
    #next-featured,
    #prev-review,
    #next-review {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Mobile Categories Nav */
    .categories-nav-scroll {
        padding: 0.75rem 0;
    }

    .category-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile Responsive Hero Section */
@media (max-width: 768px) {
    /* Remove gap between header and hero */
    header + #hero-section,
    header + section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reset all parent containers */
    body > #hero-section,
    #hero-section {
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Remove gap after hero section */
    #hero-section + section,
    #hero-section + div {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .hero-slider-section {
        box-sizing: border-box !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        aspect-ratio: unset !important;
        min-height: inherit !important;
        max-height: inherit !important;
    }
    
    .hero-slider {
        box-sizing: border-box !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }
    
    .hero-slide {
        box-sizing: border-box !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        display: block !important;
    }
    
    .hero-slide.active {
        opacity: 1 !important;
        z-index: 2 !important;
    }
    
    /* Hero slide image on mobile - ensure full image visible */
    .hero-slide-image {
        box-sizing: border-box !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Reduce gradient overlay on mobile to show image better */
    .hero-slide > div:last-child {
        box-sizing: border-box !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(to bottom, rgba(155, 75, 83, 0.15) 0%, rgba(155, 75, 83, 0.1) 100%) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure no gap between header and hero */
    header + #hero-section,
    header + section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Hide scroll indicator and navigation dots on mobile if they exist */
    #hero-section .absolute.bottom-8,
    #hero-section .hero-dots,
    #hero-section .hero-nav {
        display: none !important;
    }
    
    /* Keep decorative bottom wave visible on mobile */
    
    /* Ensure hero section height matches image exactly */
    #hero-section::after {
        display: none !important;
    }
    
    /* Remove any padding/margin from section after hero */
    #hero-section + section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-slider-section {
        height: 400px !important;
        aspect-ratio: 16 / 9 !important;
    }

    /* Product Grids - Single Column on Very Small Screens */
    #cookies-grid,
    #pastries-grid,
    #cakes-grid,
    #donuts-grid,
    #cupcakes-grid,
    #brownies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Hero Text */
    .hero-title {
        font-size: 2rem !important;
    }

    /* Mobile Badges - Even Smaller */
    .hero-slide .absolute div {
        padding: 0.5rem !important;
        font-size: 0.625rem !important;
    }

    /* Mobile Logo */
    header img {
        height: 3rem !important;
    }

    /* Mobile Footer Text */
    footer h3,
    footer h4 {
        font-size: 1.25rem;
    }
    
    /* Mobile Footer - Additional Fixes */
    footer ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    footer li {
        margin-bottom: 0.75rem !important;
    }
    
    /* Mobile Footer Contact Section */
    footer .flex.items-start.space-x-3 > div {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    
    /* Mobile Footer Newsletter Input */
    footer input[type="email"] {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-width: 0 !important;
    }

    /* Mobile WhatsApp Button */
    .animate-bounce-slow {
        padding: 0.75rem !important;
        bottom: 1rem !important;
        right: 1rem !important;
    }

    /* Mobile Location Popup */
    .location-popup-content {
        margin: 1rem;
        padding: 1.5rem !important;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider-section {
        height: 700px;
    }

    #cookies-grid,
    #pastries-grid,
    #cakes-grid,
    #donuts-grid,
    #cupcakes-grid,
    #brownies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brown-light);
}

/* Windows & Cross-platform Compatibility Fixes */
* {
    /* Better text rendering on Windows */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fix for Windows font rendering issues */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better line-height for Windows */
p, span, div, a, li {
    line-height: 1.6;
}

/* Footer Specific Windows Fixes */
footer {
    /* Better text rendering in footer */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Footer Mobile Responsive - Additional Fixes */
@media (max-width: 768px) {
    /* Footer Container - Prevent Overflow */
    footer {
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    footer .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Footer Grid - Better Mobile Layout */
    footer .grid.grid-cols-1 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Footer Column Spacing */
    footer .grid > div {
        padding: 0 !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Footer Logo Container */
    footer .mb-6 {
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    /* Footer Social Media Icons - Better Mobile Layout */
    footer .flex.items-center.space-x-4 {
        justify-content: center !important;
        margin-top: 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
    
    /* Footer Links - Better Mobile Spacing */
    footer ul.space-y-3 {
        margin-top: 1rem !important;
        padding-left: 0 !important;
    }
    
    /* Footer Contact Info - Better Mobile Layout */
    footer .space-y-4 {
        margin-top: 1rem !important;
    }
    
    /* Footer Business Hours - Better Mobile Layout */
    footer .space-y-3 {
        margin-top: 1rem !important;
    }
    
    /* Footer Newsletter - Better Mobile Layout */
    footer .mt-6 {
        margin-top: 1.5rem !important;
    }
    
    /* Footer Bottom Bar - Better Mobile Layout */
    footer .border-t.border-white {
        margin-top: 2rem !important;
    }
    
    /* Footer Bottom Bar Container */
    footer .border-t .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Footer Text - Prevent Overflow */
    footer p,
    footer a,
    footer span,
    footer div,
    footer h4 {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto;
        box-sizing: border-box !important;
    }
    
    /* Footer Email - Better Wrapping */
    footer a[href^="mailto:"] {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
    
    /* Footer Business Hours - Better Mobile Display */
    footer .flex.justify-between.items-center {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Footer Newsletter Input - Better Mobile */
    footer input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    /* Footer Subscribe Button - Better Mobile */
    footer button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #9B4B53;
}

/* Button Styles */
.btn-primary {
    background-color: #9B4B53;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #7A3A41;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 75, 83, 0.3);
}

/* Cart Badge Animation */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cart-badge-animate {
    animation: bounce 0.5s;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9B4B53;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    display: none; /* Hidden by default */
}

/* Show mobile menu only on mobile screens */
@media (max-width: 767px) {
    #mobile-menu {
        display: block;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
    
    #mobile-menu-btn {
        display: none !important;
    }
}

#mobile-menu.show {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* Mobile Navigation Links */
.nav-link-mobile {
    color: var(--brown);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link-mobile:hover {
    color: #9B4B53;
}

.nav-link-mobile.active {
    color: #9B4B53;
    background-color: #F3C9CF;
    font-weight: 600;
}

/* Floating WhatsApp Button Animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

/* Header Logo Animation */
header a:hover .w-10 {
    transform: rotate(5deg);
}

/* Category Filter */
.category-btn {
    transition: all 0.3s;
}

.category-btn.active {
    background-color: #9B4B53;
    color: white;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

/* Sticky Cart Bar */
#sticky-cart-bar {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

#sticky-cart-bar.translate-y-full {
    transform: translateY(100%);
}

#sticky-cart-bar:hover {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
}

#sticky-cart-bar:active {
    transform: translateY(0) scale(0.98);
}

/* Checkout Drawer */
#checkout-drawer {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#checkout-drawer-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 75, 83, 0.3) transparent;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#checkout-drawer-panel::-webkit-scrollbar {
    width: 8px;
}

#checkout-drawer-panel::-webkit-scrollbar-track {
    background: transparent;
}

#checkout-drawer-panel::-webkit-scrollbar-thumb {
    background: rgba(155, 75, 83, 0.3);
    border-radius: 10px;
}

#checkout-drawer-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 75, 83, 0.5);
}

/* Responsive adjustments for sticky cart bar */

@media (max-width: 1024px) {
    #checkout-drawer-panel {
        width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Mobile specific fixes for checkout drawer */
@media (max-width: 768px) {
    #checkout-drawer-panel {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
    }
    
    #checkout-drawer-panel > div:first-child {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    #checkout-drawer-panel .p-6 {
        padding: 1rem;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #checkout-drawer-items {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    #checkout-drawer-items > * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #checkout-summary {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    #checkout-drawer-panel img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure text content respects width */
    #checkout-drawer-panel p,
    #checkout-drawer-panel span,
    #checkout-drawer-panel div:not(.flex):not(.grid) {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for buttons and links */
    #checkout-drawer-panel button,
    #checkout-drawer-panel a {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure flex containers don't overflow */
    #checkout-drawer-panel .flex {
        flex-wrap: wrap;
        max-width: 100%;
    }
}

/* Mobile fixes for cart page */
@media (max-width: 768px) {
    #cart-items {
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-item {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .cart-item > * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-item img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure cart container doesn't overflow */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Fix form inputs on mobile */
    #checkout-form input,
    #checkout-form textarea,
    #checkout-form select {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix grid layout on mobile */
    .grid {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure form section is visible on mobile */
    #checkout-form {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure order summary section is visible */
    .lg\\:col-span-1 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1rem !important;
    }
    
    /* Ensure customer form container is visible */
    .bg-white.rounded-lg.shadow-md.p-6:has(#checkout-form) {
        display: block !important;
        visibility: visible !important;
    }
    
    #place-order-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
        background: linear-gradient(135deg, #9B4B53 0%, #7A3A41 100%) !important;
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        border-radius: 0.5rem !important;
    }
    
    /* Ensure all form elements are visible */
    #checkout-form > div {
        display: block !important;
        visibility: visible !important;
    }
}

/* General styles for Place Order button - Desktop and Mobile */
#place-order-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    background: linear-gradient(135deg, #9B4B53 0%, #7A3A41 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

#place-order-btn:hover {
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
}

#place-order-btn:active {
    transform: scale(0.98) !important;
}

#place-order-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Order Confirmation Modal Styles */
#order-confirmation-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#order-confirmation-modal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    #order-confirmation-modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    #order-confirmation-modal .bg-white {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 1rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    #order-confirmation-modal h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    #order-confirmation-modal p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    #confirmation-order-summary {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    #confirmation-order-summary > div {
        margin-bottom: 0.5rem;
    }
    
    #order-confirmation-modal button {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    
    /* Ensure text doesn't overflow */
    #confirmation-order-summary * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Single Images Slider Styles */
.single-images-slider {
    aspect-ratio: 16 / 9;
    min-height: 400px;
    max-height: 600px;
}

.single-images-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.single-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.single-image-slide.active {
    opacity: 1;
    z-index: 2;
}

.single-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-dot.active {
    background-color: white !important;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.single-dot:hover {
    transform: scale(1.2);
}

/* Mobile Single Images Slider */
@media (max-width: 768px) {
    .single-images-slider {
        aspect-ratio: 16 / 9 !important;
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    .single-image-slide > div:first-child {
        background-size: contain !important;
    }
}

/* ============================================
   Mobile Hero Banner - Simple Landscape Slider
   ============================================ */
.mobile-hero-banner {
    width: 100%;
    height: 40vh;
    min-height: 300px;
    max-height: 500px;
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0 !important;
}

.mobile-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.mobile-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: none !important;
    animation: none !important;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    bottom: 0 !important;
}

.mobile-hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.mobile-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* First slide image - hide on mobile */
.mobile-hero-image-first,
.mobile-hero-slide[data-slide="0"] {
    display: none !important;
}

/* Second slide image - hide on mobile */
.mobile-hero-image-second,
.mobile-hero-slide[data-slide="1"] {
    display: none !important;
}

/* Hide slider dots on mobile since only third image is visible */
.mobile-hero-dots {
    display: none !important;
}

/* Third slide image - fill entire hero section, no extra space */
.mobile-hero-image-third {
    background-position: 90% center !important;
    background-size: cover !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Stop animations for mobile hero */
.mobile-hero-slide {
    transition: none !important;
    animation: none !important;
}

.mobile-hero-image {
    transition: none !important;
    animation: none !important;
}

/* Mobile Slider Dots */
.mobile-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.mobile-dot.active {
    opacity: 1 !important;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.mobile-dot:not(.active) {
    opacity: 0.5;
}

/* Ensure mobile hero banner is only visible on mobile */
@media (min-width: 768px) {
    .mobile-hero-banner {
        display: none !important;
    }
    
    .desktop-hero {
        display: block !important;
    }
}

/* Ensure desktop hero is hidden on mobile */
@media (max-width: 767px) {
    .desktop-hero {
        display: none !important;
    }
}


