:root {
    --primary-color: #f86bff;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --warning-color: #FFA07A;
    --success-color: #98D8C8;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333;
    --border-radius: 15px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
    min-height: 100vh;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.logo-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25)) brightness(1.1);
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.title-stars {
    font-size: 1.5rem;
    animation: sparkle 1.5s linear infinite;
    -webkit-text-fill-color: initial;
}

/* Breakpoint 850px */
@media (max-width: 850px) {
    .site-title {
        font-size: 1.3rem;
        margin-left: 10px;
    }

    .logo-image {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .logo {
        margin-right: 0.5rem;
    }
    
    .site-title {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2.5rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .site-title {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1rem;
        margin-left: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .logo-image {
        height: 55px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        width: 96%;
        padding: 1.5rem 1rem;
        margin-top: 85px;
        min-height: auto;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-image {
        margin-top: 2rem;
        min-height: 200px;
        width: 100%;
    }

    .hero-video {
        max-width: 100%;
        width: 300px;
    }

    .hero-decorations {
        height: 80px;
        margin-top: 1rem;
    }

    .toy-decoration {
        font-size: 3rem;
    }

    .toy-decoration[src] {
        width: 80px;
    }

    .products-grid,
    .recenzii-grid,
    .features-grid,
    .contact-content,
    .footer-content,
    .modal-products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .products-widgets-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .party-icon {
        font-size: 1.5rem;
    }

    .party-icon.balloon {
        font-size: 2rem;
    }

    .features, .products, .recenzii {
        padding: 3rem 1rem;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .products-grid, .features-grid, .recenzii-grid {
        opacity: 1 !important;
        visibility: visible !important;
        display: grid !important;
    }

    .product-card, .category-card, .feature, .recenzii-card {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
    }

    .featured-carousel-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .features-grid, .products-grid, .recenzii-grid {
        display: grid !important;
    }

    .feature, .product-card, .recenzii-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Breakpoint 650px - Smaller screens site title adjustment */
@media (max-width: 650px) {
    .site-title {
        font-size: 1rem;
        margin-left: 8px;
    }
    
    .logo-image {
        height: 60px;
    }
}

/* Breakpoint 480px - Small Mobile phones */
@media (max-width: 480px) {
    .header {
        padding: 5px 0;
    }

    .logo-image {
        height: 55px;
    }

    .hero {
        padding: 1rem;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-video {
        width: 260px;
    }

    .toy-decoration {
        font-size: 2.22rem;
    }
    
    .toy-decoration[src] {
        width: 60px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .product-card,
    .category-card {
        padding: 1.5rem;
    }

    .products-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Breakpoint 400px - Very small phones */
@media (max-width: 400px) {
    .logo-image {
        height: 42px;
    }

    .site-title {
        font-size: 0.85rem !important;
        max-width: 130px !important;
    }
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Search Bar Styles */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

#searchInput {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(248, 107, 255, 0.2);
}

#searchSubmit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

#searchSubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 107, 255, 0.4);
}

#searchClose {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

#searchClose:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

.icon-link {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge:empty,
.badge[data-count="0"] {
    display: none;
}

.widget-wishlist-btn.active,
.btn-wishlist.active {
    color: #ff4757;
    transform: scale(1.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin: 110px auto 1rem;
    width: 90%;
    max-width: 1000px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    min-height: 250px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 110px;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: slideInLeft 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInLeft 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
}

.hero-video {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-video:hover {
    transform: scale(1.02);
}

.hero-decorations {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 2rem;
}

.hero-decorations .toy-decoration {
    position: absolute;
    animation: floatScale 2.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
}

.hero-decorations .toy-decoration:nth-child(1) {
    top: 0%;
    left: 0%;
    animation-duration: 2s;
}

.hero-decorations .toy-decoration:nth-child(2) {
    top: 40%;
    left: 30%;
    animation-duration: 2.8s;
    animation-delay: 0.2s;
}

.hero-decorations .toy-decoration:nth-child(3) {
    bottom: 10%;
    right: 30%;
    animation-duration: 2.2s;
    animation-delay: 0.4s;
}

.hero-decorations .toy-decoration:nth-child(4) {
    top: 10%;
    right: 0%;
    animation-duration: 3s;
    animation-delay: 0.6s;
}

.hero-decorations .toy-decoration[src] {
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Celebration Effects */
.celebration-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 5;
}

.party-icon {
    position: absolute;
    font-size: 3rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, floatScale 1.5s ease-in-out infinite alternate;
}

/* Specific Positions and Animations for Party Icons */
.party-icon:nth-child(1) {
    top: -10%;
    left: 15%;
    animation-delay: 0.1s;
    font-size: 3.5rem;
}

.party-icon.balloon {
    bottom: -20%;
    left: 45%;
    animation: floatUp 3s ease-in infinite;
    font-size: 4.5rem;
}

.party-icon.sparkle {
    top: 20%;
    right: 15%;
    animation: sparkle 1s linear infinite;
    font-size: 3.5rem;
}

.party-icon.star {
    bottom: 30%;
    left: 5%;
    animation: popIn 0.4s forwards, floatScale 1.2s infinite reverse;
    animation-delay: 0.2s;
    font-size: 2.8rem;
}

.party-icon.sparkle-small {
    top: 60%;
    right: 40%;
    animation: sparkle 0.7s linear infinite;
    font-size: 2rem;
}

.party-icon.confetti-piece {
    top: 15%;
    right: 5%;
    animation: popIn 0.6s forwards, floatScale 1.5s infinite;
    animation-delay: 0.2s;
    font-size: 2rem;
}

@keyframes floatScale {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) scale(1.1) rotate(5deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    80% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-200px) rotate(15deg);
        opacity: 0;
    }
}

.toy-decoration {
    font-size: 3rem;
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.toy-decoration[src] {
    width: 80px;
    height: auto;
}

/* Position decorations in a circular pattern with equal spacing */
.toy-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.toy-decoration:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.6s;
}

.toy-decoration:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation-delay: 1.2s;
}

.toy-decoration:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.8s;
}

.toy-decoration:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2.4s;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.announcement-banner.hidden {
    display: none;
}

.announcement-content {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Featured Carousel Section */
.featured-carousel-section {
    padding: 1rem 0;
    overflow: hidden;
    background: transparent;
}

.carousel-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.carousel-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-scroll-track {
    display: flex;
    width: max-content;
    padding: 0 5%;
    animation: gallery-scroll 25s linear infinite;
}

.carousel-scroll-track:hover {
    animation-play-state: paused;
}

.carousel-product-item {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    margin: 0 12px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    scroll-snap-align: center;
    background: white;
    border: 3px solid white;
}

.carousel-product-item:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.carousel-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

@keyframes gallery-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: white;
    scroll-margin-top: 140px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    min-height: 200px;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.product-icon,
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-card p {
    color: #666;
    line-height: 1.6;
}

/* recenzii section */
.recenzii {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    scroll-margin-top: 140px;
}

.recenzii .section-title {
    color: white;
}

.recenzii .section-title::after {
    background: rgb(232, 204, 204);
}

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

.recenzii-card {
    background: rgb(229, 162, 208);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);

}

.recenzii-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(194, 142, 142, 0.2);
}

.recenzii-preview {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recenzii-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.recenzii-card p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
    scroll-margin-top: 100px;
}

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

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    color: white;
    scroll-margin-top: 140px;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.submit-button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Product Modal Styles */
.modal-products {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-products.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.modal-products-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-products-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.modal-products-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-products-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-products-close:hover {
    transform: scale(1.2);
}

.modal-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.modal-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.modal-product-photos {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    overflow-x: auto;
    display: flex;
    gap: 0;
}

.modal-product-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-product-photo-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-weight: 600;
}

.modal-product-info {
    padding: 1.5rem;
}

.modal-product-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.modal-product-description {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0 1rem 0;
}

.modal-product-details {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #555;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-item span {
    flex: 1;
    min-width: 150px;
}


.modal-product-btn-buy {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-product-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.modal-product-video {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.modal-product-video strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    margin-top: 0.5rem;
}

.modal-video-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.modal-product-video-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-product-video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}


/* Removed Redundant Media Query Block (768px) */

/* Removed Redundant Media Query Block (480px) */

/* Category Cards - Clickable */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card p {
    color: #666;
    line-height: 1.6;
}

.category-product-count {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.category-card.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.category-card.clickable:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.category-card.clickable .category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card.clickable:hover .category-icon {
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    margin-top: 2rem;
    scroll-margin-top: 140px;
}

.products-section.hidden {
    display: none;
}

.products-section-header {
    position: relative;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.btn-back {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background-color: #3db4b0;
    transform: translateX(-5px);
}

/* Products Widgets Grid */
.products-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-widget {
    background: white;
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-widget-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 20;
}

.widget-wishlist-btn,
.widget-cart-btn {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-wishlist-btn {
    animation: floatHeart 3s ease-in-out infinite;
}

.widget-cart-btn {
    animation: floatCart 3.2s ease-in-out infinite;
}

.widget-wishlist-btn:hover {
    transform: scale(1.2);
    background: #ff6b6b;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.widget-cart-btn:hover {
    transform: scale(1.2);
    background: #4ECDC4;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.widget-wishlist-btn.animate {
    animation: heartBeat 0.6s ease !important;
}

.widget-cart-btn.animate {
    animation: cartPulse 0.6s ease !important;
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatCart {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.15) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.product-widget-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.product-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-widget:hover .product-widget-image img {
    transform: scale(1.1);
}

.product-widget-info {
    padding: 1rem;
    text-align: center;
}

.product-widget-info h3 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-widget-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Product Detail Modal */
#productDetailModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

#productDetailModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-images {
    text-align: center;
}

.image-gallery {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.product-detail-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    object-fit: cover;
    display: block;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-controls.hidden {
    display: none;
}

.gallery-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background-color: #3db4b0;
    transform: scale(1.1);
}

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

.image-counter {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    min-width: 50px;
}

.product-detail-info h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-detail-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.product-detail-price .price {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
}

.product-detail-row {
    margin-bottom: 1.5rem;
}

.product-detail-row strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-detail-row p {
    color: var(--text-color);
    line-height: 1.6;
}

.product-detail-row.hidden {
    display: none;
}

.product-detail-video {
    margin-bottom: 1.5rem;
}

.product-detail-video.hidden {
    display: none;
}

.product-detail-video strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.video-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: var(--border-radius);
    display: block;
}

.btn-video {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.btn-video:hover {
    background-color: #3a95a8;
    transform: translateY(-2px);
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cart,
.btn-wishlist {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-cart:hover {
    background-color: #e55555;
    transform: translateY(-2px);
}

.btn-wishlist {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-wishlist:hover {
    background-color: #ffe6e6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.clickable {
    cursor: pointer;
}

/* Responsive Design for Product Widgets and Detail */
/* Consolidating into main blocks... See top and bottom of file */

/* Removed Redundant Media Query Block (480px) */

/* Base Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Side Modal Essentials */
.side-modal-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    z-index: 2100;
    display: flex;
    flex-direction: column;
}

.modal.active .side-modal-content {
    transform: translateX(0);
}

.modal-items-list {
    flex: 1;
    overflow-y: auto;
    margin: 1.5rem 0;
}

.modal-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.modal-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-item-info {
    flex: 1;
}

.modal-item-info h4 {
    margin: 0;
    font-size: 1rem;
}

.modal-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.modal-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    background: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #eee;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-display {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ff4757;
}

/* Checkout Form Styles */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkout-form input,
.checkout-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.checkout-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 0.8rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.btn-finalize-order,
.btn-checkout {
    background: linear-gradient(135deg, #FF4B2B, #FF416C);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-finalize-order:hover,
.btn-checkout:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 75, 43, 0.4);
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.btn-finalize-order:active,
.btn-checkout:active {
    transform: translateY(-1px);
}

.btn-back-to-cart {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Celebration Modal Styles - Enhanced */
.celebration-enhanced-content {
    text-align: center;
    padding: 0 0 3rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: none;
    max-width: 550px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalPulse 2s infinite alternate;
}

.thank-you-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    color: white;
    padding: 1.5rem;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 5px;
    animation: gradientShift 3s linear infinite;
    margin-bottom: 2rem;
}

.celebration-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: celebrationBounce 1s ease infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.celebration-enhanced-content h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.celebration-message {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.celebration-details {
    background: #fdf2ff;
    padding: 2rem;
    margin: 0 2rem;
    border-radius: var(--border-radius);
    border: 1px dashed var(--primary-color);
}

.btn-celebration-close {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(248, 107, 255, 0.3);
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-celebration-close:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(248, 107, 255, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes modalPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

@keyframes celebrationBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Added to Cart Modal Specific Styles */
.added-confirm-section {
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 1rem 0;
}

.added-modal-wide {
    max-width: 850px;
}

#addedProductQuickView {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.added-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.added-product-info h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.added-product-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.added-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-continue-shopping,
.btn-added-view-cart {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-continue-shopping {
    background: #e9ecef;
    color: var(--text-color);
}

.btn-added-view-cart {
    background: var(--primary-color);
    color: white;
}

.btn-continue-shopping:hover,
.btn-added-view-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.recommendations-section {
    padding: 0 1.5rem 1.5rem;
}

.recommendations-section h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.recommendations-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.rec-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.rec-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rec-info h4 {
    font-size: 0.85rem;
    margin: 0 0 0.3rem 0;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.rec-btn-add {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.rec-btn-add:hover {
    background: var(--primary-color);
    color: white;
}

/* Category/Search Products Modal Grid */
#modalProductsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.modal-product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.modal-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.modal-product-photos {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.modal-product-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to show full toy */
    padding: 10px;
    transition: var(--transition);
}

.modal-product-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.modal-product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modal-product-info h3 {
    margin: 0 0 0.8rem 0;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.modal-product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.modal-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.detail-item span {
    font-size: 0.9rem;
    color: #444;
}

.detail-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Ensure modal title is centered and visible */
#modalProductsTitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 800;
}

@media (max-width: 600px) {
    #modalProductsGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .modal-product-photos {
        height: 180px;
    }
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, #FF416C, #FF4B2B, #f86bff, #4ECDC4);
    background-size: 300% 300%;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 100;
    margin: 1rem auto;
    /* Centered with vertical spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: gradientShift 5s ease infinite, bannerBlink 2s ease-in-out infinite;
}

.announcement-banner.hidden {
    display: none;
}

.announcement-content {
    display: inline-block;
    letter-spacing: 0.5px;
    animation: textBlink 1.5s ease-in-out infinite;
}

@keyframes textBlink {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    50% {
        opacity: 0.7;
        text-shadow: none;
    }
}

@keyframes bannerBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}

/* Adjust Hero Margin when banner is present is handled via JS usually */

/* Featured Carousel Styles */
.featured-carousel-section {
    padding: 2rem 0;
    background: #fff;
    overflow: hidden;
}

.carousel-scroll-container {
    padding: 10px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.carousel-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-scroll-track {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.carousel-item {
    flex: 0 0 160px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.carousel-item-img-wrapper {
    height: 140px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item-info {
    padding: 0.8rem;
    text-align: center;
}

.carousel-item-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
}

.no-featured {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}