/*
Theme Name: Frymate Custom
Author: StorageClouds
Version: 2.0
Description: Custom WooCommerce theme with modern white + neon red design
*/

/* =========================
   BASE & RESET
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================
   HEADER - MODERN
========================= */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1000;
}

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

.burger {
    display: none;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* MENU */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .menu,
.main-nav .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu--primary {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav .menu--primary > li {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .menu--primary > li > a {
    display: inline-flex;
    align-items: center;
    height: 60px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #333;
    padding: 0;
    transition: color 0.2s ease;
}

.main-nav .menu--primary > li > a:hover,
.main-nav .menu--primary > li.current-menu-item > a,
.main-nav .menu--primary > li.current_page_item > a {
    color: #ff1a1a;
    text-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

.main-nav .menu-item-has-children > a::after {
    content: "▾";
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.8;
}

/* DROPDOWN */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    border: 1px solid rgba(255, 26, 26, 0.1);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.main-nav .sub-menu li a:hover {
    background: rgba(255, 26, 26, 0.05);
    color: #ff1a1a;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

/* HEADER ICONS */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001;
}

.header-icons a,
.header-icons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icons a:hover,
.header-icons button:hover {
    background: #fff;
    border-color: #ff1a1a;
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.2);
    transform: scale(1.05);
}

.header-icons img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0.2);
    transition: filter 0.2s ease;
}

.header-icons a:hover img {
    filter: brightness(1) invert(0);
}

/* Cart & Wishlist counters */
.cart-count,
.wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff1a1a;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
    display: none;
}

.cart-count.has-items,
.wishlist-count.has-items {
    display: block !important;
}

/* Search */
.search-container {
    position: relative;
}

#search-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#search-toggle:hover {
    background: rgba(255, 26, 26, 0.1);
}

.search-form-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

.search-form-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.search-form-dropdown form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-form-dropdown input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f8f8;
}

.search-form-dropdown input:focus {
    outline: none;
    border-color: #ff1a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.1);
}

.search-form-dropdown button {
    width: 40px;
    height: 40px;
    border: none;
    background: #ff1a1a;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    padding: 0;
}

.search-form-dropdown button:hover {
    background: #e60000;
    transform: scale(1.05);
}

/* =========================
   HERO SLIDER FULL WIDTH
========================= */

.hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    height: clamp(320px, 34vw, 520px) !important;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    display: flex;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 28%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.14), transparent);
    pointer-events: none;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
    color: #fff;
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    transition: 0.3s;
}

.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
    background: rgba(255, 26, 26, 0.8);
}

.hero .swiper-button-prev {
    left: 20px;
}

.hero .swiper-button-next {
    right: 20px;
}

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

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
    .hero {
        height: clamp(240px, 32vw, 360px) !important;
        aspect-ratio: 2314 / 1000 !important;
    }

    .hero-image {
        object-fit: contain;
        object-position: center center;
        background: #f7f7f7;
    }

    .hero-slide::after {
        height: 20%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
    }

    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .hero .swiper-button-prev {
        left: 12px;
    }

    .hero .swiper-button-next {
        right: 12px;
    }

    .hero .swiper-button-prev::after,
    .hero .swiper-button-next::after {
        font-size: 16px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .hero {
        height: clamp(180px, 34vw, 260px) !important;
        aspect-ratio: 2314 / 1000 !important;
    }

    .hero-slide {
        background: #f7f7f7;
    }

    .hero-image {
        object-fit: contain;
        object-position: center center;
        padding: 0;
    }

    .hero-slide::after {
        display: none;
    }

    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        width: 34px;
        height: 34px;
    }

    .hero .swiper-button-prev {
        left: 8px;
    }

    .hero .swiper-button-next {
        right: 8px;
    }

    .hero .swiper-button-prev::after,
    .hero .swiper-button-next::after {
        font-size: 14px;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
    .hero {
        height: clamp(160px, 36vw, 220px) !important;
    }

    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .hero .swiper-button-prev::after,
    .hero .swiper-button-next::after {
        font-size: 12px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================
   HOME CATEGORIES - GRID LAYOUT
========================= */
.home-categories {
    background: #ffffff;
    padding: 50px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.category-item:hover .category-icon {
    border-color: #ff1a1a;
    box-shadow: 0 0 25px rgba(255, 26, 26, 0.25);
    transform: scale(1.05);
}


.category-item:hover .category-title {
    color: #ff1a1a;
}

/* Responsive categories */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .category-icon {
        width: 90px;
        height: 90px;
    }
    
    .category-icon img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon img {
        width: 40px;
        height: 40px;
    }
    
    .category-title {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .home-categories {
        padding: 40px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon img {
        width: 35px;
        height: 35px;
    }
    
    .category-title {
        font-size: 12px;
    }
}

/* =========================
   MODERN PRODUCT CARD
========================= */
.new-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.product-card.modern-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(255, 26, 26, 0.08), 0 0 0 1px rgba(255, 26, 26, 0.1);
    border-color: rgba(255, 26, 26, 0.2);
}

.card-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.card-image-wrap .product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image-wrap .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card.modern-card:hover .card-image-wrap .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ffffff;
    color: #ff1a1a;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 26, 26, 0.2);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #999;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}

.wishlist-btn.active {
    color: #ff1a1a;
    background: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.2);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 15px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.product-card.modern-card:hover .product-title {
    color: #ff1a1a;
}

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.price-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-price .amount {
    color: #1a1a1a;
}

.card-button .button,
.card-button .add_to_cart_button,
.card-button .product_type_simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 40px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.3px;
}

.card-button .button:hover {
    background: #ff1a1a;
    color: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
    transform: scale(1.02);
}

/* =========================
   PAGINATION
========================= */
.custom-pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.custom-pagination a,
.custom-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-weight: 500;
    min-width: 40px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
}

.custom-pagination .current {
    background: #ff1a1a;
    color: #fff;
    border-color: #ff1a1a;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.custom-pagination a:hover {
    border-color: #ff1a1a;
    color: #ff1a1a;
}

/* =========================
   PRE-FOOTER & FOOTER
========================= */
.pre-footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.pre-footer-col.brand-col h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 15px;
    color: #1a1a1a;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pre-footer-col h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ff1a1a;
    letter-spacing: 0.5px;
}

.pre-footer a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pre-footer a:hover {
    color: #ff1a1a;
    text-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

.copyright-bar {
    background: #fafafa;
    color: #666;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.copyright-bar a {
    color: #ff1a1a;
    text-decoration: none;
}

.copyright-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

/* =========================
   STICKY FOOTER
========================= */
html, body {
    height: auto;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.site-wrapper main {
    flex: 1;
}

/* =========================
   OUT OF STOCK MESSAGE
========================= */
.out-of-stock-message {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    color: #c62828;
    font-weight: 500;
    text-align: center;
}

.out-of-stock-message p {
    margin: 0;
    font-size: 16px;
}

/* =========================
   ADMIN ORDER STYLES
========================= */
.customer-type-admin-box {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff1a1a;
}

.customer-type-admin-box p {
    margin: 8px 0;
    font-size: 14px;
}

.customer-type-admin-box strong {
    color: #1a1a1a;
    min-width: 120px;
    display: inline-block;
}

.customer-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.badge-private {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-business {
    background: #fce4e4;
    color: #ff1a1a;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .header-inner {
        height: 70px;
        padding: 0 15px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .main-nav {
        display: none !important;
    }
    
    .header-icons {
        display: none !important;
    }
    
    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-left: 15px;
    }
    
    .burger span {
        width: 100%;
        height: 2px;
        background: #ff1a1a;
        transition: 0.3s;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 8px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -8px);
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-inner {
        position: absolute;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background: white;
        padding: 100px 20px 30px;
        transition: 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 2001;
    }
    
    .mobile-menu.active .mobile-menu-inner {
        right: 0;
    }
    
    .mobile-menu-icons {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 20px 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #ff1a1a;
        gap: 10px;
    }
    
    .mobile-menu-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
        position: relative;
        flex: 1;
    }
    
    .mobile-menu-icon:hover {
        color: #ff1a1a;
        transform: translateY(-2px);
    }
    
    .mobile-menu-icon img {
        width: 24px;
        height: 24px;
        margin-bottom: 5px;
        display: block;
    }
    
    .mobile-menu-cart-count {
        position: absolute;
        top: -8px;
        right: 15px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 50%;
        background: #ff1a1a;
        color: #fff;
        font-size: 10px;
        line-height: 18px;
        text-align: center;
        font-weight: bold;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        margin: 0;
    }
    
    .mobile-nav a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav a:hover {
        color: #ff1a1a;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #ff1a1a;
    }
    
    .new-products .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .new-products .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .product-card.modern-card {
        padding: 15px;
    }
    
    .card-image-wrap .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .price-action-row {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .new-products .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .product-card.modern-card {
        padding: 15px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .card-image-wrap {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .card-image-wrap .product-image {
        height: 120px;
    }
    
    .card-content {
        flex: 1;
        min-width: 0;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .price-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .price-block {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .card-button .button {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .product-badge {
        bottom: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .wishlist-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .woocommerce-pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .woocommerce-pagination .button {
        width: 200px;
        text-align: center;
    }
}

/* =========================
   MOBILE MENU - TIKAI MOBILAJĀM IERĪCĒM
========================= */

/* Desktop - paslēpt mobilo menu */
@media (min-width: 993px) {
    .mobile-menu,
    .mobile-menu-inner,
    .mobile-menu-icons,
    .burger {
        display: none !important;
    }
    
    /* Parādīt desktop menu */
    .main-nav {
        display: flex !important;
    }
    
    .header-icons {
        display: flex !important;
    }
}

/* Mobilās ierīces (līdz 992px) */
@media (max-width: 992px) {
    /* Paslēpt desktop menu */
    .main-nav {
        display: none !important;
    }
    
    .header-icons {
        display: none !important;
    }
    
    /* Parādīt burger un mobilo menu */
    .burger {
        display: flex !important;
    }
    
    /* Mobile menu stili - jau esošie, bet pārliecināmies */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        display: block !important;
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-inner {
        position: absolute;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background: white;
        padding: 100px 20px 30px;
        transition: 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu.active .mobile-menu-inner {
        right: 0;
    }
    
    .mobile-menu-icons {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        padding: 20px 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #ff1a1a;
        gap: 10px;
    }
    
    .mobile-menu-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
        position: relative;
        flex: 1;
    }
    
    .mobile-menu-icon:hover {
        color: #ff1a1a;
        transform: translateY(-2px);
    }
    
    .mobile-menu-icon img {
        width: 24px;
        height: 24px;
        margin-bottom: 5px;
        display: block;
    }
    
    .mobile-menu-cart-count {
        position: absolute;
        top: -8px;
        right: 15px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 50%;
        background: #ff1a1a;
        color: #fff;
        font-size: 10px;
        line-height: 18px;
        text-align: center;
        font-weight: bold;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        margin: 0;
    }
    
    .mobile-nav a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav a:hover {
        color: #ff1a1a;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #ff1a1a;
    }
}


@media (min-width: 1024px) {
    .mobile-menu,
    .mobile-menu-inner,
    .mobile-menu-icons {
        display: none !important;
    }
}



/* =========================
   PRE-FOOTER & FOOTER - ADAPTĪVAIS DIZAINS
========================= */

/* ===== PRE-FOOTER ===== */
.pre-footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Brand column */
.pre-footer-col.brand-col h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 15px;
    color: #1a1a1a;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pre-footer-col.brand-col p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    max-width: 400px;
}

/* Column titles */
.pre-footer-col h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ff1a1a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Menu stili */
.pre-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pre-footer li {
    margin: 0 0 12px;
}

.pre-footer a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pre-footer a:hover {
    color: #ff1a1a;
    text-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

/* Contact info */
.pre-footer-contact {
    margin: 20px 0 0;
}

.pre-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.pre-footer-contact li i,
.pre-footer-contact li .icon {
    color: #ff1a1a;
    font-size: 16px;
    min-width: 20px;
}

/* ===== COPYRIGHT BAR ===== */
.copyright-bar {
    background: #fafafa;
    color: #666;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.copyright-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copyright-bar a {
    color: #ff1a1a;
    text-decoration: none;
    font-weight: 500;
}

.copyright-bar a:hover {
    text-decoration: underline;
}

/* ===== RESPONSĪVĀ ADAPTĀCIJA ===== */

/* Lielie ekrāni - 4 kolonnas */
@media (max-width: 1200px) {
    .pre-footer-grid {
        gap: 30px;
    }
    
    .pre-footer-col.brand-col h2 {
        font-size: 28px;
    }
}

/* Planšetdatori - 2 kolonnas */
@media (max-width: 992px) {
    .pre-footer {
        padding: 50px 0;
        margin-top: 50px;
    }
    
    .pre-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .pre-footer-col.brand-col {
        grid-column: span 2;
        text-align: center;
    }
    
    .pre-footer-col.brand-col p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pre-footer-col.brand-col .pre-footer-contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 30px;
    }
    
    .pre-footer-col.brand-col .pre-footer-contact li {
        flex: 0 0 auto;
    }
    
    .pre-footer-col h4 {
        margin-bottom: 15px;
        font-size: 15px;
    }
    
    .copyright-inner {
        flex-direction: column;
        gap: 5px;
    }
}

/* Mobilās ierīces - 1 kolonna */
@media (max-width: 768px) {
    .pre-footer {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .pre-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pre-footer-col.brand-col {
        grid-column: span 1;
    }
    
    .pre-footer-col.brand-col h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .pre-footer-col.brand-col p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .pre-footer-col.brand-col .pre-footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pre-footer-col.brand-col .pre-footer-contact li {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
    
    /* Katra kolonna ar savu virsrakstu */
    .pre-footer-col {
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 25px;
    }
    
    .pre-footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .pre-footer-col h4 {
        margin-bottom: 15px;
        font-size: 15px;
    }
    
    .pre-footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .pre-footer li {
        margin-bottom: 10px;
    }
    
    .copyright-bar {
        padding: 15px 0;
        font-size: 13px;
    }
}

/* Mazās mobilās ierīces */
@media (max-width: 480px) {
    .pre-footer {
        padding: 30px 0;
    }
    
    .pre-footer-grid {
        gap: 25px;
    }
    
    .pre-footer-col.brand-col h2 {
        font-size: 24px;
    }
    
    .pre-footer-col.brand-col p {
        font-size: 12px;
    }
    
    .pre-footer-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .pre-footer a {
        font-size: 13px;
    }
    
    .pre-footer-contact li {
        font-size: 13px;
    }
    
    .copyright-bar {
        padding: 12px 0;
        font-size: 12px;
    }
}

/* Ļoti mazas ierīces */
@media (max-width: 360px) {
    .pre-footer-col.brand-col h2 {
        font-size: 22px;
    }
    
    .pre-footer-col.brand-col .pre-footer-contact li {
        flex-direction: column;
        gap: 3px;
        text-align: center;
    }
}



/* ============================= */
/* SEARCH RESULTS PAGE - FIXED */
/* ============================= */

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

.search-page .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.search-page .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ff1a1a;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

/* Products grid */
.search-page .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Product card */
.search-page .product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-page .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(255, 26, 26, 0.08), 0 0 0 1px rgba(255, 26, 26, 0.1);
    border-color: rgba(255, 26, 26, 0.2);
}

/* Image container - FIXED SIZE */
.search-page .card-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
}

/* Product image - FIXED SIZE */
.search-page .product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.search-page .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    max-height: 250px; /* Maksimālais augstums */
}

.search-page .product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Badge */
.search-page .product-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ffffff;
    color: #ff1a1a;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 26, 26, 0.2);
    z-index: 5;
}

/* Wishlist button */
.search-page .wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #999;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-page .wishlist-btn:hover {
    transform: scale(1.1);
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}

.search-page .wishlist-btn.active {
    color: #ff1a1a;
}

/* Product title */
.search-page .product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 15px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.search-page .product-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.search-page .product-card:hover .product-title a {
    color: #ff1a1a;
}

/* Price row */
.search-page .price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.search-page .price-block {
    display: flex;
    flex-direction: column;
}

.search-page .price-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.search-page .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.search-page .product-price .amount {
    color: #1a1a1a;
}

/* Add to cart button */
.search-page .card-button .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.search-page .card-button .button:hover {
    background: #ff1a1a;
    color: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}

/* Pagination */
.search-page .pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-page .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-page .pagination .page-numbers.current {
    background: #ff1a1a;
    color: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.2);
}

.search-page .pagination .page-numbers:hover:not(.current) {
    border-color: #ff1a1a;
    color: #ff1a1a;
    transform: translateY(-2px);
}

/* No results */
.search-page .no-results {
    text-align: center;
    padding: 80px 30px;
    background: #fafafa;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.search-page .no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.search-page .no-results .search-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-page .no-results .search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
}

.search-page .no-results .search-form button {
    padding: 14px 30px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-page .no-results .search-form button:hover {
    background: #ff1a1a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .search-page .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .search-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .search-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .search-page .product-card {
        padding: 15px;
    }
    
    .search-page .product-image img {
        max-height: 200px;
    }
    
    .search-page .price-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-page .card-button .button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-page .products-grid {
        grid-template-columns: 1fr;
    }
    
    .search-page .product-card {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .search-page .card-image-wrap {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }
    
    .search-page .product-image img {
        max-height: 120px;
    }
    
    .search-page .card-content {
        flex: 1;
    }
    
    .search-page .product-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .search-page .no-results {
        padding: 50px 20px;
    }
    
    .search-page .no-results .search-form {
        flex-direction: column;
    }
}



html {
    scroll-behavior: smooth;
}

/* чтобы якорь не прятался под хедером */
[id] {
    scroll-margin-top: 110px;
}