:root {
    --primary-color: #99bd03; /* Lime green from the image */
    --background-color: #1a1a1a;
    --text-color: #f5f5f5;
    --header-bg: #222;
    --card-bg: #222;
    --light-gray: #333;
    --border-color: #99bd03;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    animation: pageLoad 0.4s ease-out;
}

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

body.page-transition {
    opacity: 0.95;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    background: var(--primary-color);
    color: #000;
    padding: 15px 45px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 4.7s;
    animation-fill-mode: forwards;
}

.flash-success {
    background: var(--primary-color);
}

.flash-error {
    background: #ff6b6b;
    color: #fff;
}

.flash-info {
    background: #4ecdc4;
}

.flash-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@media (max-width: 480px) {
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 70px;
    }

    .flash-message {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Scroll animations */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile container padding */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}


/* Header */
.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile header */
@media (max-width: 480px) {
    .site-header {
        padding: 8px 0;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* Mobile logo adjustments */
@media (max-width: 480px) {
    .logo-link {
        gap: 10px;
    }
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile logo size */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        width: 40px;
    }
}

.site-brand {
    font-family: 'Ruslan Display', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Mobile brand text */
@media (max-width: 480px) {
    .site-brand {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

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

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

/* Mobile logo img */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
}

/* Mobile header right */
@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
}

.lang-switcher {
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-switcher a {
    color: var(--light-gray);
    text-decoration: none;
    padding: 0 5px;
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.lang-switcher a:hover {
    color: var(--primary-color);
}

.mobile-lang {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-lang {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-right: 15px;
    }
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    flex-wrap: wrap;
}

/* Make cart display more compact on small screens */
@media (max-width: 768px) {
    .cart-info {
        font-size: 1rem;
        gap: 5px;
    }

    .cart-total {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .mobile-lang {
        margin-right: 10px;
        gap: 6px;
        font-size: 0.85rem;
    }

    .mobile-lang a {
        padding: 0 3px;
    }
}

/* For very small screens, stack cart items */
@media (max-width: 480px) {
    .mobile-lang {
        margin-right: 8px;
        gap: 4px;
        font-size: 0.8rem;
    }
    
    .cart-info {
        font-size: 0.9rem;
    }

    .cart-count {
        font-size: 0.8rem;
        padding: 1px 5px;
    }
}

.cart-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    display: none;
}

/* Show mobile menu button on tablets and phones */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #2b2b2b;
    color: #e6e6e6;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.55);
    transition: right 0.25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 20px;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.mobile-drawer-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f5f5f5;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #f5f5f5;
}

.mobile-drawer-links {
    display: grid;
    gap: 14px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #3a3a3a;
}

.drawer-link {
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s;
}

.drawer-link:hover {
    opacity: 0.8;
}

.drawer-link::after {
    content: "+";
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-drawer-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #3a3a3a;
    font-weight: 600;
    color: #f5f5f5;
}

.mobile-drawer-lang .lang-switcher {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-lang .lang-switcher a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-drawer-lang .lang-switcher a.active {
    background: var(--primary-color);
    color: #1a1a1a;
}

.mobile-drawer-lang .lang-switcher .divider {
    color: #666;
}

.mobile-drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #444;
    background: #1f1f1f;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 16px;
}

.mobile-drawer-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
    color: #e6e6e6;
}

.mobile-drawer-search i {
    color: #bdbdbd;
}

.mobile-drawer-cart {
    padding: 14px 0;
    border-top: 1px solid #3a3a3a;
    margin-top: auto;
}

.mobile-drawer-cart .drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(153, 189, 3, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-drawer-cart .drawer-link:hover {
    background: rgba(153, 189, 3, 0.2);
}

.mobile-drawer-cart .drawer-link::after {
    content: none;
}

body.menu-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-drawer {
    right: 0;
}

/* Nav (desktop links removed) */
.site-nav {
    display: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

.mobile-nav {
    display: none;
    background: var(--header-bg);
    border-top: 1px solid #333;
    padding: 12px 15px 16px;
}

.mobile-nav-links {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
    color: #b5b5b5;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.2;
    color: #99bd03;
}

.hero-caption {
    display: block;
    font-size: 0.82rem;
    color: #9e9e9e;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.82rem;
    }
    .hero-caption {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.45rem;
    }
    .hero-subtitle {
        font-size: 0.76rem;
    }
}

/* Updated button for new text length */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #d4a017;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #000000;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.6);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Raffle Button */
.btn-raffle {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-raffle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(153, 189, 3, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

.btn-raffle:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-raffle:hover {
    color: #1a1a1a;
}

.btn-raffle span {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for raffle button */
@media (max-width: 600px) {
  .btn-raffle {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    border-radius: 24px !important;
    min-width: 0 !important;
    box-shadow: 0 1px 4px rgba(153,189,3,0.12);
  }
  .btn-raffle span {
    font-size: 0.8rem !important;
  }
}

/* Categories Section */
/* Categories Section - Icon Cards (Top 4) */
.categories-section {
    padding: 40px 15px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.category-card {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
    background: var(--card-bg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    padding: 0;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.category-name {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 8px 20px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    border: 2px solid #d4a017;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(153, 189, 3, 0.3);
    border-color: #aad404;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-card:hover .category-name {
    background: #000000;
    color: #ffffff;
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.6);
    transform: translateX(-50%) translateY(-2px);
}

/* Mobile optimization for icon categories */
@media (max-width: 768px) {
    .category-name {
        font-size: 0.75rem;
        padding: 7px 18px;
        border: 2px solid #d4a017;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 15px;
    }

    .category-card {
        padding: 10px;
    }

    .category-name {
        font-size: 0.7rem;
        padding: 6px 16px;
        border: 2px solid #d4a017;
        border-radius: 25px;
        bottom: 10px;
    }
}

@media (max-width: 360px) {
    .category-name {
        font-size: 0.65rem;
        padding: 5px 14px;
        border: 2px solid #d4a017;
        border-radius: 25px;
    }
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: #999;
    font-style: italic;
    border-radius: 5px;
}


/* Database Categories Section - Modern Design */
.db-categories-section {
    padding: 30px 15px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.5) 0%, rgba(42, 42, 42, 0.3) 100%);
    border-radius: 20px;
    margin: 30px auto;
    text-align: center;
    max-width: 1400px;
}

.db-categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .db-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1100px) {
    .db-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .db-categories-section {
        padding: 20px 10px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .db-categories-grid {
        gap: 15px;
    }
}

.db-category-card {
    background: linear-gradient(135deg, #252525 0%, #1f1f1f 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 25px 18px;
    min-height: 180px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

/* Mobile optimization for db-category-card */
@media (max-width: 480px) {
    .db-category-card {
        padding: 20px 15px;
        min-height: 160px;
        border-radius: 12px;
    }
}

.db-category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(153, 189, 3, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.db-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(153, 189, 3, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.db-category-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mobile font size adjustment */
@media (max-width: 480px) {
    .db-category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
}

.db-category-card p {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

/* Mobile font size adjustment */
@media (max-width: 480px) {
    .db-category-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

.category-arrow {
    color: var(--primary-color);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

@media (max-width: 480px) {
    .category-arrow {
        font-size: 1.4rem;
    }
}

.db-category-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    box-shadow: 0 15px 30px rgba(153, 189, 3, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Less dramatic hover on mobile */
@media (max-width: 480px) {
    .db-category-card:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 10px 20px rgba(153, 189, 3, 0.15);
    }
}


.db-category-card:hover::before {
    top: -25%;
    right: -25%;
}

.db-category-card:hover::after {
    opacity: 1;
}

.db-category-card:hover .category-arrow {
    transform: translateX(8px) scale(1.2);
    color: #88a802;
}

/* New Arrivals */
.new-arrivals-section {
    text-align: center;
    padding: 40px 15px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Mobile section title */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
}

.title-separator {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Mobile separator */
@media (max-width: 480px) {
    .title-separator {
        height: 3px;
        width: 50px;
    }
}


/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile by default */
    gap: 15px;
    margin-top: 30px;
    max-width: 100%;
}

/* Small phones - 2 column still works generally, maybe adjust gap */
@media (max-width: 360px) {
    .products-grid {
        gap: 10px;
    }
}

/* Tablets - 3 columns */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop - 4 columns */
@media (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile optimization for products */
@media (max-width: 479px) {
    .product-card {
        border-radius: 10px;
        border-width: 1px;
    }

    .product-card img {
        height: 160px; /* Reduced height for 2-col mobile layout */
    }

    .product-info {
        padding: 12px 8px; /* Tighter padding */
    }

    .product-card h3 {
        font-size: 0.95rem; /* Smaller title */
        margin-bottom: 5px;
        min-height: auto; /* Allow natural height */
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .product-short-desc {
        display: none; /* Hide desc on very small screens if needed, or keep short */
        white-space: pre-wrap; /* Preserve line breaks */
        word-wrap: break-word;
    }

    .product-card .product-price {
        font-size: 1.1rem;
    }
}

.product-card {
    background: linear-gradient(135deg, #252525 0%, #1f1f1f 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(153, 189, 3, 0.2);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Mobile product-card - simpler */
@media (max-width: 479px) {
    .product-card {
        border-radius: 10px;
        border-width: 1px;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

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

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

/* Subtle hover on mobile */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(153, 189, 3, 0.1);
    }
}

.product-view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #88a802 100%);
    color: #111;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.product-view-btn:hover {
    background: linear-gradient(135deg, #88a802 0%, var(--primary-color) 100%);
    transform: translateX(3px);
}

@media (max-width: 479px) {
    .product-view-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

/* Mobile image - larger for single column */
@media (max-width: 479px) {
    .product-card img {
        height: 280px;
    }
}

/* Tablet - medium size */
@media (min-width: 480px) and (max-width: 767px) {
    .product-card img {
        height: 200px;
    }
}

/* Desktop - smaller */
@media (min-width: 768px) {
    .product-card img {
        height: 220px;
    }
}

.product-card:hover img {
    opacity: 0.95;
}

.product-info {
    padding: 18px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile info - more padding */
@media (max-width: 479px) {
    .product-info {
        padding: 20px 15px;
        gap: 15px;
    }
}

/* Додаємо стилі для групування кнопки і форми внизу */
.product-info .category-more-link {
    margin-top: auto;
    margin-bottom: 0;
}

.product-info .category-add-to-cart-form {
    margin-top: 8px;
    margin-bottom: 0;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    min-height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile - larger text */
@media (max-width: 479px) {
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
}

.product-short-desc {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap; /* Preserve line breaks */
    word-wrap: break-word;
}

/* Mobile - hide description for cleaner look */
@media (max-width: 479px) {
    .product-short-desc {
        font-size: 0.85rem;
    }
}

.product-card .product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Mobile price - larger */
@media (max-width: 479px) {
    .product-card .product-price {
        font-size: 1.4rem;
    }
}

.product-card .btn-primary {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #d4a017;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile button - more rounded and slightly smaller */
@media (max-width: 768px) {
    .product-card .btn-primary {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 22px;
    }
}

.product-card .btn-primary:hover {
    background-color: #000000;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.6);
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

@media (max-width: 479px) {
    .btn-small {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}


.product-info h3 {
    margin: 0 0 10px 0;
}

.product-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-short-desc {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap; /* Preserve line breaks */
    word-wrap: break-word;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* Desktop layout - horizontal */
@media (min-width: 769px) {
    .product-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
}

/* New category product card styles */
.product-name {
    margin-bottom: 8px;
    min-height: 2.4em; /* Reserve space for 2 lines */
}

.product-name a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
}

.product-name a:hover {
    color: var(--primary-color);
}

/* NEW badge for new products */
.product-new-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(229,57,53,0.4);
    pointer-events: none;
}

.product-image-link {
    position: relative;
    display: block;
}

.product-short-desc {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap; /* Preserve line breaks */
    word-wrap: break-word;
}

.product-price-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.product-availability {
    font-size: 0.8rem;
    font-weight: 600;
}

.product-availability.in-stock {
    color: #90ee90;
}

.product-availability.out-of-stock {
    color: #ff6b6b;
}

.category-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    overflow: hidden;
}

.qty-btn-category {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.qty-btn-category:hover {
    background: #333;
}

.qty-btn-category:active {
    background: #444;
    transform: scale(0.95);
}

.quantity-input-category {
    flex: 1;
    border: none;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    background: transparent;
    text-align: center;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 6px;
    pointer-events: none;
    min-width: 50px;
}

.quantity-input-category::-webkit-outer-spin-button,
.quantity-input-category::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, var(--primary-color) 0%, #88a802 100%);
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #aad404 0%, #99bd03 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 189, 3, 0.4);
}

.btn-add-to-cart:hover:not(:disabled) i {
    animation: cartBounce 0.5s ease;
}

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

.btn-add-to-cart:active:not(:disabled) {
    transform: translateY(0);
}

.btn-add-to-cart:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-add-to-cart i {
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .product-name {
        min-height: 2.6em; /* More space on mobile for longer names */
    }

    .product-name a {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .qty-btn-category {
        font-size: 1.4rem;
        padding: 12px 16px;
        min-height: 44px;
    }

    .btn-add-to-cart {
        padding: 14px 18px;
        min-height: 46px;
    }
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 1.05rem;
    }
}

.add-to-cart-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

/* Desktop - form takes remaining space */
@media (min-width: 769px) {
    .add-to-cart-form {
        flex: 1;
        max-width: 200px;
    }
}

.quantity-input {
    width: 60px;
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .quantity-input {
        width: 50px;
        padding: 6px;
    }
}

/* Button takes remaining space */
.add-to-cart-form .btn {
    flex: 1;
    white-space: nowrap;
    padding: 8px 12px;
    min-height: 40px;
}

@media (max-width: 768px) {
    .add-to-cart-form .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Top Products Section */
/* Top Products Section */
.top-products-section {
    text-align: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.3) 0%, rgba(42, 42, 42, 0.2) 100%);
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1400px;
}

@media (max-width: 768px) {
    .top-products-section {
        padding: 30px 10px;
        margin: 20px auto;
    }
}

.top-products-section .container {
    max-width: 100%;
    padding: 0;
}


/* Category Products Section */
.category-products {
    padding: 25px 15px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.3) 0%, rgba(42, 42, 42, 0.2) 100%);
    border-radius: 16px;
    margin: 20px auto;
    max-width: 1400px;
}

/* Mobile category products */
@media (max-width: 768px) {
    .category-products {
        padding: 18px 10px;
        margin: 15px auto;
    }
}

/* Category products grid - better spacing */
.category-products .products-grid {
    gap: 20px;
}

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

@media (min-width: 1100px) {
    .category-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

/* Category product cards - adaptive height */
.category-products .product-card {
    min-height: 350px; /* Збільшено для довгих назв */
}

@media (max-width: 768px) {
    .category-products .product-card {
        min-height: 320px; /* Збільшено для мобільних */
    }
}

.category-products .product-info {
    padding: 15px;
    align-items: center;
    text-align: center;
}

/* LAST override: category short description centered + larger */
.category-products .product-info {
    align-items: center !important;
    text-align: center !important;
}

.category-products .product-short-desc.category-short-desc {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px auto 12px auto !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 479px) {
    .category-products .product-short-desc.category-short-desc {
        font-size: 0.9rem !important;
        margin: 4px auto 6px auto !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

.category-header {
    text-align: center;
    padding: 30px 15px 20px;
    margin: 0 auto;
    max-width: 1400px;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }
}

.category-description {
    color: #c0c0c0;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    white-space: pre-wrap; /* Preserve line breaks */
    word-wrap: break-word;
}

.category-breadcrumb {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #88a802;
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}


/* Product placeholder for missing images */
.product-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 0 0;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #333;
}

.review-placeholder,
.about-shop-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #666;
    font-weight: 600;
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.85rem;
    width: 100%;
}

@media (max-width: 479px) {
    .btn-small {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

.placeholder-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1.05rem;
    background: rgba(25, 25, 25, 0.5);
    border-radius: 12px;
}

/* Product Details Page */
.breadcrumb-section {
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.product-details {
    padding: 30px 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-details-grid {
        gap: 20px;
    }

    .product-details-info {
        position: relative;
        padding-bottom: 20px;
    }
}

.product-details-image {
    position: relative;
    width: 100%;
}

@media (min-width: 769px) {
    .product-details-image {
        position: sticky;
        top: 80px;
    }
}

/* Product Gallery */
.product-gallery {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-main-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #333;
    background: #1a1a1a;
    flex-shrink: 0;
}

.detail-image-btn {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.detail-image-btn .detail-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    border: none;
    background: #1a1a1a;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .detail-image-btn .detail-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .detail-image-btn .detail-image {
        height: 280px;
    }
}

.detail-image-btn:hover .detail-image {
    transform: scale(1.03);
}

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.detail-image-btn:hover .zoom-hint {
    opacity: 1;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(153, 189, 3, 0.8);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 0 0 10px 0;
    width: 100%;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #a9c41c;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #444;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(153, 189, 3, 0.3);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(153, 189, 3, 0.5);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gallery-thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

.detail-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #333;
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .detail-image {
        max-height: 400px;
    }
}

.product-placeholder-large {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
}

.product-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
}

.product-category {
    margin-bottom: 15px;
}

.product-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-category a:hover {
    text-decoration: underline;
}

.product-detail-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.price-value {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .price-value {
        font-size: 1.5rem;
    }
}

.product-detail-description {
    margin-bottom: 20px;
}

.product-detail-description h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .product-detail-description h3 {
        font-size: 1rem;
    }
}

.product-detail-description p {
    color: #d9d9d9;
    line-height: 1.7;
    font-size: 0.95rem;
    white-space: pre-wrap; /* Preserves line breaks and spaces */
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .product-detail-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.product-availability {
    margin-bottom: 20px;
    padding: 12px;
    background: #2a3a2a;
    border-radius: 8px;
}

.in-stock {
    color: #90ee90;
    font-weight: 600;
}

.product-add-to-cart {
    margin-bottom: 25px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover {
    background: #333;
}

.qty-btn:active {
    background: #444;
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .qty-btn {
        padding: 12px 18px;
        font-size: 1.4rem;
    }
}

.quantity-input-detail {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.quantity-input-detail::-webkit-outer-spin-button,
.quantity-input-detail::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.product-actions {
    margin-top: 25px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-link:hover {
    text-decoration: underline;
    margin-left: 5px;
}

/* Cart Page */
.cart-section {
    padding: 40px 15px;
}

@media (max-width: 480px) {
    .cart-section {
        padding: 20px 10px;
    }
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

@media (max-width: 768px) {
    .cart-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cart-grid {
        gap: 15px;
    }
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .cart-table {
        font-size: 0.85rem;
    }
}

.cart-table thead {
    background: #2a2a2a;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cart-table th {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cart-table {
        display: block;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
    }

    .cart-item {
        display: block;
        border: 1px solid #333;
        border-radius: 6px;
        margin-bottom: 10px;
        padding: 10px;
        background: #252525;
        position: relative;
    }

    .cart-item td {
        display: block;
        padding: 5px 0 !important;
        border: none !important;
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Назва товара с картинкой */
    .cart-item td:first-child {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 0 8px 0 !important;
        border-bottom: 1px solid #333 !important;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .cart-item .item-name span {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Цена */
    .cart-item td:nth-child(2)::before {
        content: 'Ціна: ';
        font-weight: 600;
        color: #999;
    }

    .cart-item td:nth-child(2) {
        color: var(--primary-color);
        font-weight: 600;
    }

    /* Кількість */
    .cart-item td:nth-child(3)::before {
        content: 'Кількість: ';
        font-weight: 600;
        color: #999;
        display: block;
        margin-bottom: 4px;
    }

    .cart-item td:nth-child(3) {
        display: flex !important;
        align-items: center;
        padding: 5px 0 !important;
    }

    .item-quantity {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .cart-qty-btn {
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
        min-width: 28px !important;
        height: auto !important;
    }

    .qty-input {
        width: 35px !important;
        padding: 4px !important;
        font-size: 0.8rem !important;
        text-align: center;
    }

    /* Сума */
    .cart-item td:nth-child(4)::before {
        content: 'Сума: ';
        font-weight: 600;
        color: #999;
    }

    .cart-item td:nth-child(4) {
        color: var(--primary-color);
        font-weight: 600;
        padding: 5px 0 8px 0 !important;
        border-bottom: 1px solid #333 !important;
        margin-bottom: 8px;
    }

    /* Видалення */
    .cart-item td:last-child {
        display: flex !important;
        justify-content: flex-end;
        padding: 0 !important;
    }

    .btn-remove {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        width: auto !important;
        height: auto !important;
        border-radius: 4px !important;
    }
}

.cart-item {
    border-bottom: 1px solid #333;
}

.cart-item td {
    padding: 15px;
    vertical-align: middle;
    color: #d9d9d9;
}

@media (max-width: 768px) {
    .cart-item td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}


.item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: inline-block;
    overflow: hidden;
    border-radius: 5px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .item-image {
        width: 55px;
        height: 55px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .item-image {
        width: 45px;
        height: 45px;
        margin-right: 10px;
        border-radius: 4px;
    }
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-name {
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .item-name {
        flex-wrap: wrap;
    }
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    width: fit-content;
}

@media (max-width: 480px) {
    .cart-quantity-control {
        gap: 5px;
    }
}

.cart-qty-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 35px;
}

@media (max-width: 480px) {
    .cart-qty-btn {
        padding: 6px 10px;
        font-size: 1rem;
        min-width: 30px;
    }
}

.cart-qty-btn:hover {
    background: #333;
}

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

.qty-input {
    width: 50px;
    padding: 5px;
    background: transparent;
    border: none;
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .qty-input {
        width: 40px;
        font-size: 0.9rem;
    }
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .btn-remove {
        padding: 0;
        font-size: 1rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .btn-remove {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: 3px;
        right: 3px;
    }
}

.btn-remove:hover {
    background: #ff5252;
}

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

.cart-summary {
    height: fit-content;
    position: sticky;
    top: 120px;
}

@media (max-width: 768px) {
    .cart-summary {
        position: static;
        top: auto;
    }
}

.summary-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    color: #d9d9d9;
}

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

.summary-card h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .summary-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .summary-row {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

.summary-total {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .summary-total {
        font-size: 1.1rem;
    }
}

.summary-card .btn {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .summary-card .btn {
        margin-top: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.summary-card .btn-link {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .summary-card .btn-link {
        margin-top: 8px;
        font-size: 0.9rem;
    }
}

/* Checkout Page Styles */
.checkout-section {
    padding: 40px 0;
    min-height: 500px;
}

.checkout-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

@media (max-width: 968px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.checkout-form-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.checkout-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-summary {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    color: var(--text-color);
    font-weight: 500;
}

.item-qty {
    color: #999;
    font-size: 0.9rem;
}

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

.summary-divider {
    height: 1px;
    background: #444;
    margin: 20px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.summary-total-price {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .checkout-summary {
        position: static;
    }

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

/* ================================================
   Autocomplete (Nova Poshta city/branch dropdowns)
   ================================================ */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #99bd03;
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.92rem;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
    transition: background 0.15s;
    line-height: 1.4;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: rgba(153,189,3,0.15);
    color: #fff;
}

.autocomplete-list li.no-results {
    color: #888;
    cursor: default;
    font-style: italic;
}

.autocomplete-list::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-list::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}
.autocomplete-list::-webkit-scrollbar-thumb {
    background: #99bd03;
    border-radius: 4px;
}

/* ================================================
   Footer Styles
   ================================================ */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col-wide {
    max-height: none;
    overflow: visible;
}

.footer-grid-second {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-accordion {
    display: none;
}



.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col p {
    color: #a0a0a0;
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-line;
    word-wrap: break-word;
    margin-bottom: 6px;
}

.footer-col-delivery p {
    column-count: 1;
    column-gap: 20px;
    font-size: 0.85rem;
    line-height: 1.55;
}

.footer-contact {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.footer-contact div span {
    display: block;
    line-height: 1.6;
}

.footer-contact div span:first-child {
    font-weight: 600;
    color: #fff;
}

.footer-telegram-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.footer-telegram-btn:hover {
    background: #a9c41c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 189, 3, 0.3);
}



.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a0a0a0;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-developer {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-developer:hover {
    color: #a9c41c;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
        margin-top: 50px;
    }

    .footer-grid,
    .footer-grid-second {
        display: none;
    }


    .footer-accordion {
        display: block;
    }

    .footer-col h3 {
        font-size: 1.2rem;
    }

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

/* About Me Section */
.about-me-section {
    position: relative;
    padding: 70px 20px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 1400px;
    overflow: hidden;
}

.about-me-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.about-me-content {
    text-align: left;
}

.about-me-content h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #f5f5f5;
}

.about-me-subtitle {
    color: #cfcfcf;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-me-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.about-me-section .stat-box {
    background: rgba(25, 25, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.about-me-section .stat-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 26px rgba(153, 189, 3, 0.2);
    transform: translateY(-4px);
}

.about-me-section .stat-number {
    font-size: 1.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.about-me-section .stat-text {
    font-size: 0.9rem;
    color: #d0d0d0;
    line-height: 1.4;
    margin-bottom: 10px;
}

.about-me-section .stat-text strong {
    color: #f5f5f5;
}

.about-me-section .stat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(153, 189, 3, 0.15);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.about-me-section .stat-link:hover {
    background: rgba(153, 189, 3, 0.28);
    transform: scale(1.08);
}

.about-me-description p {
    font-size: 1.25rem;
    color: #f5f5f5;
    line-height: 1.7;
    font-weight: 300;
}

.about-me-spacer {
    min-height: 260px;
}

@media (max-width: 1024px) {
    .about-me-section {
        padding: 55px 18px;
    }

    .about-me-container {
        grid-template-columns: 1fr;
    }

    .about-me-content h2 {
        font-size: 2.4rem;
    }

    .about-me-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-me-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-me-section {
        padding: 45px 16px;
        border-radius: 16px;
    }

    .about-me-content h2 {
        font-size: 2rem;
    }

    .about-me-subtitle {
        font-size: 0.95rem;
    }

    .about-me-stats {
        grid-template-columns: 1fr;
    }

    .about-me-description p {
        font-size: 1.05rem;
    }
}

/* Cart Page Adjustments */
.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.cart-section .title-separator {
    margin: 0 auto 30px;
}

.empty-cart {
    text-align: center;
    padding: 80px 40px;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #2a3a2a 0%, #1f2f1f 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(153, 189, 3, 0.15);
    position: relative;
    overflow: hidden;
}

.empty-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(153, 189, 3, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .empty-cart {
        padding: 60px 30px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .empty-cart {
        padding: 40px 20px;
        gap: 15px;
    }
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
    z-index: 1;
}

@media (max-width: 480px) {
    .empty-cart-icon {
        font-size: 3rem;
    }
}

/* Cart empty-state centering override */
.cart-section .empty-cart {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cart-section .empty-cart h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    z-index: 1;
}

@media (max-width: 480px) {
    .cart-section .empty-cart h2 {
        font-size: 1.5rem;
    }
}

.cart-section .empty-cart p {
    text-align: center;
    color: #b0b0b0;
    font-size: 1rem;
    margin: 0;
    z-index: 1;
}

@media (max-width: 480px) {
    .cart-section .empty-cart p {
        font-size: 0.9rem;
    }
}

.cart-section .empty-cart .btn {
    z-index: 1;
    min-width: 200px;
}

/* =========================================
   New UI Components
   ========================================= */

/* Back Button Inline */
.back-button-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.back-button-inline:hover {
    transform: translateX(-3px);
}

.separator {
    color: #666;
    margin: 0 5px;
}

/* Reviews Bar */
.reviews-bar-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.reviews-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #222 100%);
    border: 1px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 50px; /* Pill shape */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.reviews-bar:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(153, 189, 3, 0.3);
}

.reviews-bar i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.reviews-bar:hover i {
    color: #000;
    transform: translateX(5px);
}

/* Product Card - More Button & Short Desc */
.product-more-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 0;
    text-align: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-card:hover .product-more-btn {
    background: var(--primary-color);
    color: #000;
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Detail Image Zoom Button */
.detail-image-btn {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.detail-image-btn .detail-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 2px solid #333;
    background: #1a1a1a;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .detail-image-btn .detail-image {
        height: 280px;
    }
}

.detail-image-btn:hover .detail-image {
    transform: scale(1.03);
}

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.detail-image-btn:hover .zoom-hint {
    opacity: 1;
}

/* Footer Accordion (Mobile) */
.footer-accordion {
    display: none;
    margin-top: 30px;
    border-top: 1px solid #333;
}

@media (max-width: 992px) {
    /* На планшетах - 2 колонки, третя на новий рядок */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide regular footer columns on mobile */
    .footer-grid {
        display: none;
    }

    .footer-accordion {
        display: block;
    }
}

.footer-accordion-item {
    border-bottom: 1px solid #333;
}

.footer-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.footer-accordion-toggle i {
    transition: transform 0.3s ease;
}

.footer-accordion-item.active .footer-accordion-toggle i {
    transform: rotate(180deg);
}

/* Footer accordion smoother transitions */
.footer-accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.footer-accordion-item.active .footer-accordion-content {
    max-height: 2400px; /* Large enough to avoid clipping */
    opacity: 1;
    padding-bottom: 15px;
}

.footer-accordion-content p {
    color: #a0a0a0;
    font-size: 0.87rem;
    margin-bottom: 6px;
    line-height: 1.6;
    white-space: pre-line; /* Зберігає переноси рядків */
    word-wrap: break-word;
}

/* Review Photo Button */
.review-photo-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: zoom-in;
    width: 100%;
}

.review-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.review-card:hover .review-photo {
    transform: scale(1.02);
}

/* About Me Social Buttons Highlight (Permanent) */
.stat-link[href*="tiktok"] {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-link[href*="instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(214, 36, 159, 0.3);
}

.stat-link[href*="telegram"],
.stat-link[href*="t.me"] {
    background: #0088cc;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

/* Hover effect */
.stat-link:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Default style reset */
.stat-link {
    color: #fff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Review Dialog Form */
.review-form-dialog {
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.review-form-dialog::backdrop {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.dialog-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    color: var(--text-color);
}

.close-dialog {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Review Form Styling */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(153, 189, 3, 0.3);
}

/* Stylish File Input */
input[type="file"] {
    display: none;
}

.file-input-wrapper {
    position: relative;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #2a3a2a 0%, #1f2f1f 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #b0b0b0;
    font-weight: 600;
    min-height: 80px;
}

.file-input-label:hover {
    background: linear-gradient(135deg, #3a4a3a 0%, #2f3f2f 100%);
    border-color: #aad404;
    color: var(--primary-color);
}

.file-input-label i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-input-label span {
    text-align: center;
}

.file-input-label .file-name {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

input[type="file"]:focus + .file-input-label {
    box-shadow: 0 0 12px rgba(153, 189, 3, 0.3);
}

/* Textarea Styling */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: 'Roboto', sans-serif;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviews-header .section-title {
    margin-bottom: 0;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-rating {
    color: #FFD700;
}

/* Reviews Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: rgba(42, 42, 42, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(153, 189, 3, 0.15);
}

/* Review Text Collapsible */
.review-text.collapsible {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.review-text.collapsible.expanded {
    max-height: none;
}

.expand-review-btn {
    background: none;
    border: none;
    color: #99bd03;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 0;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.expand-review-btn:hover {
    opacity: 0.8;
}

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

/* Reviews Section (Inline) */
.reviews-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.reviews-container.open {
    max-height: 2000px; /* Arbitrary large height */
    opacity: 1;
    margin-bottom: 40px;
}

.reviews-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 20px;
}

.contact-bar-section {
    margin-top: 18px;
}

.contact-bar {
    width: 100%;
    border: 1px solid #99bd03;
    background: linear-gradient(135deg, #2a2a2a 0%, #222 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-bar i {
    color: #99bd03;
}

.contact-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.contact-container.open,
.contact-container.contact-container--open {
    max-height: 1200px;
    opacity: 1;
    margin-bottom: 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 8px;
}

.contact-bar-title {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #99bd03;
    display: block;
    padding: 10px 0;
}

.contact-content {
    background: var(--card-bg);
    padding: 26px 28px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 20px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
}

.contact-btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
}

/* ===== SOCIAL CARDS ===== */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.social-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: var(--bg);
    background-size: cover;
    background-position: center top;
    border: 2px solid rgba(255,255,255,0.06);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.social-card:hover {
    transform: translateY(-4px);
}

.social-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.18) 40%,
        rgba(0,0,0,0.72) 72%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 1;
}

/* Іконка — верхній лівий кут */
.social-card-top {
    position: relative;
    z-index: 2;
    padding: 12px 12px 0;
}

.social-card-icon {
    font-size: 1.4rem;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Нижній блок з підписниками */
.social-card-inner {
    position: relative;
    z-index: 2;
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.social-card-subs {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    letter-spacing: -0.3px;
}

.social-card-subs-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 600;
    margin-bottom: 3px;
}

.social-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.social-card-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #99bd03;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.social-card:hover .social-card-cta { color: #c5e040; }

/* Ховер бордер по мережі */
.social-card--telegram:hover  { border-color: #2AABEE; box-shadow: 0 10px 28px rgba(42,171,238,0.28); }
.social-card--tiktok:hover    { border-color: #ff0050; box-shadow: 0 10px 28px rgba(255,0,80,0.28); }
.social-card--instagram:hover { border-color: #e1306c; box-shadow: 0 10px 28px rgba(225,48,108,0.28); }

.social-card--telegram:hover  .social-card-icon { color: #2AABEE; }
.social-card--tiktok:hover    .social-card-icon { color: #ff0050; }
.social-card--instagram:hover .social-card-icon { color: #e1306c; }

/* Планшет */
@media (min-width: 601px) and (max-width: 900px) {
    .social-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .social-card { height: 190px; }
}

/* Мобілка */
@media (max-width: 600px) {
    .social-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .social-card {
        height: auto;
        aspect-ratio: 16 / 7;
        border-radius: 14px;
    }
    .social-card-subs { font-size: 1.2rem; }
    .social-card-subs-label { font-size: 0.62rem; }
    .social-card-name { font-size: 0.76rem; }
    .social-card-cta { font-size: 0.7rem; }
    .social-card-icon { font-size: 1.2rem; width: 32px; height: 32px; }
    .social-card-top { padding: 10px 10px 0; }
    .social-card-inner { padding: 0 10px 10px; }
}

.contact-highlights {
    color: #d6d6d6;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.contact-highlights p {
    margin: 4px 0;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 22px 20px;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== BONUS PROGRESS BAR ===== */
.bonus-progress-wrap {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border: 1px solid rgba(153, 189, 3, 0.3);
    border-radius: 14px;
    padding: 18px 20px 16px;
    margin-bottom: 16px;
}

.bonus-active-banner {
    background: linear-gradient(135deg, rgba(153,189,3,0.15) 0%, rgba(153,189,3,0.08) 100%);
    border: 1px solid rgba(153,189,3,0.5);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: #e8e8e8;
    text-align: center;
    line-height: 1.5;
}

.bonus-active-banner .bonus-name {
    color: #99bd03;
    font-weight: 700;
}

.bonus-progress-label {
    font-size: 0.88rem;
    color: #bbb;
    margin-bottom: 10px;
    text-align: center;
}

.bonus-progress-label strong {
    color: #99bd03;
}

.bonus-bar-outer {
    background: #2e2e2e;
    border-radius: 99px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.bonus-bar-inner {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #7a9a02 0%, #99bd03 60%, #b8d91a 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
    position: relative;
}

.bonus-bar-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 99px;
}

.bonus-bar-full {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 60%, #81C784 100%) !important;
    animation: bonus-pulse 1.5s ease-in-out 1;
}

@keyframes bonus-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(76,175,80,0.6); }
    50%  { box-shadow: 0 0 0 8px rgba(76,175,80,0); }
    100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

.bonus-tiers-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.bonus-tier-chip {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}

.bonus-tier-chip.tier-reached {
    border-color: rgba(153,189,3,0.4);
    color: #99bd03;
    background: rgba(153,189,3,0.07);
}

@media (max-width: 480px) {
    .bonus-progress-wrap {
        padding: 14px 14px 12px;
    }
    .bonus-active-banner {
        font-size: 0.85rem;
    }
    .bonus-tier-chip {
        font-size: 0.73rem;
        padding: 3px 10px;
    }
}

