:root {
    --primary: #0b5ed7;
    --text-dark: #132032;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Poppins", "Georgia", serif;
    color: var(--text-dark);
    background-color: #f6f7fb;
    scroll-behavior: smooth;
}

body {
    position: relative;
    line-height: 1.6;
    background-image: url("../immagini/foto3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.dynamic-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(150, 150, 150, 0.3), rgba(180, 180, 180, 0.25));
}

main {

}

.language-selector {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 10;
}

.language-selector.lifted {
    transform: translateY(0);
}

.language-selector.open {
    display: flex;
}

.language-toggle {
    display: none;
    position: fixed;
    bottom: 4rem;
    right: 1.5rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    border: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(7, 26, 74, 0.9), rgba(36, 54, 94, 0.82));
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
    z-index: 11;
}

.language-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.language-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.language-toggle.active span {
    transform: rotate(180deg);
}

.language-button {
    border: none;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 2px solid transparent;
}

.language-button img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.language-button:hover {
    transform: translateY(-4px);
}

.language-button.active {
    border-color: var(--primary);
    box-shadow: 0 12px 22px rgba(11, 94, 215, 0.25);
}

.hero {
    padding: 6rem 1.5rem 3rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero__logo-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.75rem 2.5rem;
    border-radius: 2.5rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 48px rgba(4, 14, 36, 0.42);
    text-align: center;
}

.hero__logo {
    width: min(420px, 70%);
    height: auto;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

.hero__title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__subtitle {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    max-width: 520px;
    color: #38a3f1 ;
    font-weight: 800;
}

.page-content {
    width: min(1100px, 92%);
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cta-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: #16213c;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 180px;
}

.theme-project {
    --theme-bg: linear-gradient(135deg, rgba(11, 94, 215, 0.95), rgba(102, 178, 255, 0.88));
    --theme-text: #ffffff;
    --theme-link: #dbeafe;
}

.theme-menu {
    --theme-bg: linear-gradient(135deg, rgba(24, 146, 84, 0.95), rgba(123, 221, 148, 0.88));
    --theme-text: #ffffff;
    --theme-link: #e7fff1;
}

.theme-catalog {
    --theme-bg: linear-gradient(135deg, rgba(238, 111, 87, 0.95), rgba(255, 176, 118, 0.9));
    --theme-text: #ffffff;
    --theme-link: #ffe6d5;
}

.theme-contact {
    --theme-bg: linear-gradient(135deg, rgba(244, 196, 48, 0.95), rgba(255, 224, 138, 0.9));
    --theme-text: #493200;
    --theme-link: #2f1c00;
}

.cta-card.theme-project,
.cta-card.theme-menu,
.cta-card.theme-catalog,
.cta-card.theme-contact {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.cta-card.theme-contact h3,
.cta-card.theme-contact p {
    color: inherit;
}

.cta-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.cta-card p {
    margin: 0;
    font-size: 1rem;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 50px rgba(11, 94, 215, 0.25);
}

.content-section.theme-project,
.content-section.theme-menu,
.content-section.theme-catalog,
.content-section.theme-contact {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.content-section.theme-project h2,
.content-section.theme-menu h2,
.content-section.theme-catalog h2,
.content-section.theme-contact h2 {
    color: inherit;
}

.content-section.theme-project a,
.content-section.theme-menu a,
.content-section.theme-catalog a,
.content-section.theme-contact a {
    color: var(--theme-link);
}

.content-section.theme-contact .contact-text {
    color: inherit;
}

.content-section.theme-menu .resource-card,
.content-section.theme-catalog .resource-card {
    color: #16213c;
}

.story-block,
.content-section,
.newsletter {
    background: rgba(255, 255, 255, 0.92);
    padding: 3rem 2.5rem;
    border-radius: 1.75rem;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(6px);
}

.story-block h2,
.content-section h2,
.newsletter h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--primary);
}

.section-project {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 500;

    
}
.section-project p {
    margin-bottom: -10px;
  }

.section-project h3 {
    margin: 0;
    font-size: 1.6rem;
    color: wheat;
    text-align: center;
}

.section-project img {
    width: 100%;
    max-width: 680px;
    border-radius: 1.2rem;
    box-shadow: 0 24px 50px rgba(166, 178, 205, 0.22);
    margin: 0 auto;
    display: block;
    margin-top: 17px;
}

.section-project strong {
    color: #233f82;
}

.section-project em {
    color: #ffffff;
}

.story-block {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    margin-right: auto;
}

.progetto-foto-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.progetto-foto-container .progetto-foto {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .progetto-foto-container {
        flex-direction: column;
        align-items: center;
    }

    .progetto-foto-right {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .progetto-foto-container > .progetto-foto {
        width: 90%;
        max-width: 300px;
    }

    .progetto-foto-right .progetto-foto {
        width: 45%;
        max-width: 200px;
    }
}

.progetto-foto-right {
    display: flex;
    flex-direction:row;
    gap: 20px;
    flex: 1;
}

.progetto-foto-right img {
    display: flex;
    width: 50%;
    height: 60%;
}

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

.section-project h3 {
    font-size: 1.8rem;
    font-weight: bold;
}

.story-block p {
    margin-bottom: 1.25rem;
}

.story-block .puglia-quote {
    margin-top: 1.75rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

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

#menu .resource-grid,
#catalogo .resource-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    display: grid;
    
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);

}

.resource-image {
    width: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
    max-height: 280px;
}

.resource-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-copy h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

.resource-copy p {
    margin: 0;
    font-size: 1rem;
    color: #43526b;
}

.menu-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b5ed7, #3a86ff);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(11, 94, 215, 0.25);
}

.section-intro {
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: #3a475f;
}

.contact-text {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #253147;
}

.social-media {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-media a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-media img {
    width: 28px;
    height: 28px;
}

.opening-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.opening-hours h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: inherit;
}

.opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.opening-hours li:last-child {
    border-bottom: none;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher .lang-btn,
.language-switcher .profile-icon-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.language-switcher .lang-btn:hover,
.language-switcher .profile-icon-btn:hover {
  background-color: #e0e0e0;
}

.language-switcher .lang-btn img {
  width: 24px;
  height: 24px;
}

.language-switcher .profile-icon-btn svg {
  width: 24px;
  height: 24px;
}

.navbar {
    background: rgba(37, 49, 71, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 100px;
    width: auto;
}

.hamburger {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: 2px solid transparent;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(11, 94, 215, 0.25);
    border-color: rgba(11, 94, 215, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.15);
}

.product-page .nav-menu a[href="index.php"] {
  display: none;
}

.product-page .nav-menu a[data-translate="nav_home"] {
  display: none;
}



.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 5px;
  font-size: 12px;
  min-width: 20px;
  text-align: center;
  visibility: hidden; /* Initially hidden */
}

.cart-badge.visible {
  visibility: visible;
}

.theme-shop {
    background: linear-gradient(135deg, #ffd89b 0%, #f4a81d 100%);
}

.cta-card.theme-shop h3,
.cta-card.theme-shop p {
    color: #333;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.shop-header {
    text-align: center;
    margin-bottom: 3.5rem;
    margin-top: 0;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #b8d4ff 0%, #d0bde8 50%, #c5d9e8 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3), 0 0 40px rgba(118, 75, 162, 0.2);
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shop-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.shop-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.shop-header h1::before {
    content: '🛍️ ';
    margin-right: 0.5rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.shop-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #0b5ed7;
    background: white;
    color: #0b5ed7;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0b5ed7;
    color: white;
}

/* .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
} */

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(102, 126, 234, 0.25), 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(11, 94, 215, 0.35);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
    
.product-card:hover .product-image {
    filter: brightness(1.15) saturate(1.1);
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-icon {
    font-size: 3rem;
    text-align: center;
}

.product-info {
    padding: 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.1), rgba(102, 126, 234, 0.1));
    color: #0b5ed7;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
    border: 1px solid rgba(11, 94, 215, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #132032;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.wine-name {
    text-align: center;
}

.product-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    min-height: 2.7rem;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.add-to-cart-container {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.product-size {
    font-size: 0.85rem;
    color: #999;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b5ed7;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.add-to-cart-btn {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #0b5ed7 0%, #0a4db8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
    position: relative;
    overflow: hidden;
}

.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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #0a4db8 0%, #083a94 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(11, 94, 215, 0.4);
}

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

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.winery-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    page-break-inside: avoid;
    width: 100%;
    grid-column: 1 / -1;
}

.winery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27579a;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.1), rgba(11, 94, 215, 0.05));
    border-left: 4px solid #0b5ed7;
    border-radius: 4px;
}

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

.winery-products .product-card {
    flex: none;
}

.cart-sidebar {
    position: fixed;
    left: 20px;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 999;
}

.cart-section {
    display: none;
}

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

.cart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #253147;
}

.cart-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #253147;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: transform 0.3s ease;
}

.cart-toggle-btn.collapsed {
    transform: rotate(180deg);
}

.cart-content {
    max-height: 100%;
    overflow-y: auto;
    transition: all 0.3s ease;
}

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

.cart-empty {
    color: #999;
    text-align: center;
    padding: 1rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.cart-item-name {
    flex: 1;
    color: #253147;
}

.cart-item-qty {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8rem;
}

.cart-item-price {
    color: #0b5ed7;
    font-weight: 600;
    margin-left: 0.5rem;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #0b5ed7;
    font-size: 1.1rem;
    font-weight: 600;
    color: #253147;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    background: #0b5ed7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #0a4db8;
}

.clear-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #c0392b;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-name {
    flex: 1;
    color: #253147;
    font-weight: 500;
}

.cart-item-price {
    color: #0b5ed7;
    font-weight: 600;
    margin-left: 0.5rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    background: #f5f5f5;
    padding: 0.3rem;
    border-radius: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #f0f0f0;
    border-color: #0b5ed7;
}

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

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #e74c3c;
    padding: 0;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #c0392b;
    transform: scale(1.2);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cart-empty-msg {
    color: #999;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.cart-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 0;
    transition: all 0.2s ease;
}

.cart-toggle-btn:hover {
    color: #0b5ed7;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
}

.bio-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.footer {
    background: #253147;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.checkout-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    box-sizing: border-box;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.checkout-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.summary-items {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.summary-item-name {
    flex: 1;
}

.summary-item-qty {
    color: #666;
    margin: 0 10px;
}

.summary-item-price {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.summary-total {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #8b5cf6;
}

.summary-total span {
    float: right;
}

.checkout-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.error-message {
    color: #dc2626;
    font-size: 0.9em;
    margin-top: 5px;
}

.quantity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.quantity-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 50px rgba(102, 126, 234, 0.15);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.quantity-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quantity-modal-header h3 {
    margin: 0;
    font-size: 1.35em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.quantity-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.quantity-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quantity-modal-body {
    padding: 32px 28px;
}

.quantity-modal-body p {
    margin: 0 0 20px 0;
    font-weight: 600;
    font-size: 1.1em;
}

.quantity-input-group {
    margin-bottom: 20px;
}

.quantity-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

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

.quantity-controls button {
    width: 45px;
    height: 45px;
    border: 2px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(11, 94, 215, 0.05));
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-controls button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quantity-controls input {
    width: 70px;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    text-align: center;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-controls input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quantity-price {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(11, 94, 215, 0.05));
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.98em;
    margin-bottom: 0 !important;
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #132032;
    font-weight: 500;
}

.quantity-modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px 28px;
    background: #f8f9fb;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quantity-modal-footer .btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-modal-footer .btn-primary {
    background: linear-gradient(135deg, #0b5ed7, #0a4db8);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.quantity-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 94, 215, 0.35);
}

.quantity-modal-footer .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.quantity-modal-footer .btn-secondary:hover {
    background: #f0f4ff;
}

.quantity-modal .btn-primary {
    background: linear-gradient(135deg, #0b5ed7, #0a4db8);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.quantity-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 94, 215, 0.35);
}

.quantity-modal .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.quantity-modal .btn-secondary:hover {
    background: #f0f4ff;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo img {
        height: 50px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0 0 0 auto;
        z-index: 101;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-menu {
        position: fixed;
        left: 0;
        top: 60px;
        right: 0;
        bottom: 0;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: rgba(37, 49, 71, 0.98);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none !important;
        z-index: 99;
        overflow-y: auto;
        flex: none;
        align-items: center;
        justify-content: flex-start;
    }

    .navbar-content {
        display: flex !important;
        flex-wrap: wrap;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        padding: 1.5rem;
        border: none;
        font-size: 1.3rem;
        text-align: center;
        width: 100%;
        background: transparent;
        font-weight: 600;
        color: white;
    }

    .nav-menu a:hover {
        background: rgba(11, 94, 215, 0.1);
    }

    .cart-link {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
    }

    .language-switcher {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .lang-btn img {
        height: 24px;
    }

    .shop-header {
        padding: 2rem 1.5rem;
        margin-top: 0;
        border-radius: 8px;
    }

    .shop-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .shop-header p {
        font-size: 0.95rem;
    }

    .shop-container {
        padding: 0.8rem;
        margin-bottom: 0;
    }

    .cart-content.hidden {
        max-height: 0;
        overflow: hidden;
    }

    .cart-section.collapsed {
        max-height: 60px;
    }

    .cart-section.collapsed .cart-content {
        display: none;
    }

    .filters-section {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

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

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 150px;
        font-size: 2rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .product-details {
        font-size: 0.8rem;
        min-height: 2rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .add-to-cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .cart-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 50vh;
        padding: 1rem;
        z-index: 998;
    }

    .cart-section {
        display: none;
    }

    .cart-toggle-btn {
        display: block;
    }

    .cart-header {
        margin-bottom: 0.5rem;
    }

    .cart-title {
        font-size: 1rem;
    }

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

    .cart-content:not(.hidden) {
        max-height: calc(40vh - 50px);
    }

    .checkout-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .no-results {
padding: 2rem 1rem;
    }

    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        margin-top: 20px;
    }

    .checkout-container {
        margin: 20px auto;
        padding: 10px;
    }

    .checkout-form,
    .checkout-summary {
        padding: 20px;
    }

    .checkout-form h2 {
        font-size: 1.2em;
    }

    .form-section h3 {
        font-size: 1em;
    }

.btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .quantity-modal-content {
        width: 95%;
        max-width: none;
    }

    .quantity-modal-body {
        padding: 20px;
    }

    .quantity-controls {
        gap: 5px;
    }

    .quantity-controls button {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .quantity-controls input {
        width: 50px;
        padding: 6px;
        font-size: 0.9em;
}
}

.social-media a:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(11, 94, 215, 0.25);
}

.newsletter {
    text-align: center;
}

.newsletter-container {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    margin-top: 1.5rem;
}

.newsletter-container iframe {
    width: 100%;
    border: none;
    height: 600px;
    display: block;
}

.back-to-top {
    align-self: center;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(11, 94, 215, 0.25);
}

.privacy-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 92%);
    background: rgba(10, 21, 50, 0.92);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.privacy-banner p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.privacy-banner a {
    color: #7dd3fc;
    text-decoration: underline;
}

#accept-privacy {
    border: none;
    background: linear-gradient(135deg, #0b5ed7, #38a3f1);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#accept-privacy:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(11, 94, 215, 0.25);
}

#privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 26, 0.72);
    z-index: 30;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

#privacy-content {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 640px;
    width: 100%;
    padding: 2.5rem 2rem;
    position: relative;
    color: #1f2a44;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
    max-height: 90vh;
}

#close-privacy {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.6rem;
    cursor: pointer;
    color: #64748b;
}

#privacy-content h2 {
    margin-top: 0;
    color: var(--primary);
}

#privacy-content p {
    margin-bottom: 1rem;
}

body.modal-open {
    overflow: hidden;
}

.puglia-image {
    margin: 2.5rem auto;
    max-width: 520px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
}

.puglia-image img {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    margin-top: 4rem;
    padding: 2rem 1rem 2.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
    background: linear-gradient(120deg, #0b5ed7, #1f4fbf);
    width: 100%;
}

footer a {
    color: white;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 5rem;
    }

    .story-block,
    .content-section,
    .newsletter {
        padding: 2.5rem 1.75rem;
    }

    .resource-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero__logo {
        width: 140%;
    }

    .language-selector {
        top: auto;
        bottom: 7.3rem;
        right: 1.2rem;
        transform: none;
        display: none;
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
    }

    .language-selector.lifted {
        transform: translateY(-12rem);
    }

    .language-selector.open {
        display: flex;
    }

    .language-toggle {
        display: flex;
    }

    .privacy-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #accept-privacy {
        width: 100%;
    }

    .newsletter-container iframe {
        height: 790px;
    }
}

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

.swiper-container {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #fff;
  transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: 900;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

.puglia-text-container {
    max-width: 800px; /* Aumenta la larghezza massima del contenitore */
    margin: 0 auto; /* Centra il contenitore */
    padding: 0 20px; /* Aggiunge un po' di spazio ai lati */
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.products-grid {
  display: grid;
  gap: 20px;
}

.category-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.winery-title {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

.category-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    font-weight: 600;
    color: #132032;
    border: 2px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(11, 94, 215, 0.1));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.category-card:hover {
    transform: scale(1.12) translateY(-10px);
    box-shadow: 0 24px 52px rgba(102, 126, 234, 0.28), 0 6px 16px rgba(11, 94, 215, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(11, 94, 215, 0.5);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0b5ed7, #667eea, #0b5ed7);
    border-radius: 2px;
    margin: 20px auto 0 auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::after {
    width: 80px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.category-card:hover .category-card-icon {
  transform: scale(1.25) rotate(10deg);
  animation: floatIcon 0.6s ease-in-out infinite;
}

.category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #132032;
  letter-spacing: -0.3px;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-title {
  color: #0b5ed7;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.back-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 20px;
  font-size: 1rem;
}

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

.category-title {
  font-size: 2em;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}