/* MANIAR FIX FILE */
/* This file fixes big logo, broken shop cards, mobile layout and image sizes */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* HEADER FIX */

.site-header {
    width: 100%;
    min-height: 82px;
    height: auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: rgba(5, 7, 13, 0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-holder {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 20px rgba(0,157,255,0.35), 0 0 20px rgba(255,122,0,0.20);
}

.logo-holder img,
.brand-logo-img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 14px !important;
}

.brand-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), #0c3cff 45%, var(--orange));
}

.brand-text {
    min-width: 0;
    overflow: hidden;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 11px;
    color: #a7b0c0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1;
}

.main-nav a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--orange);
}

.hot-badge {
    background: #ff2d2d;
    color: white;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 999px;
    position: relative;
    top: -8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 250px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,157,255,0.32);
    background: rgba(10,22,38,0.8);
    overflow: hidden;
    display: flex;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: white;
    padding: 0 12px;
}

.search-box button {
    width: 46px;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}

.mini-cart {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(0,157,255,0.14);
    border: 1px solid rgba(0,157,255,0.30);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 900;
}

.mini-cart span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.login-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
}

/* PAGE HERO FIX */

.page-hero {
    margin: 28px;
    padding: 34px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,122,0,0.18), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(0,157,255,0.20), transparent 35%),
        rgba(7, 17, 31, 0.78);
    border: 1px solid rgba(0,157,255,0.25);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    margin: 10px 0;
    color: white;
}

.page-hero p {
    max-width: 800px;
    color: #a7b0c0;
    line-height: 1.7;
}

/* SHOP FIX */

.shop-tools {
    margin: 0 28px 24px;
    display: grid;
    gap: 16px;
}

.shop-search {
    display: flex;
    gap: 10px;
}

.shop-search input {
    width: 100%;
    max-width: 520px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,157,255,0.25);
    background: rgba(10,22,38,0.82);
    color: white;
    outline: none;
}

.shop-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10,22,38,0.82);
    border: 1px solid rgba(0,157,255,0.24);
    color: #dff4ff;
    text-decoration: none;
}

/* CATALOG CARDS */

.catalog-grid {
    margin: 0 28px 34px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    position: relative;
    background: rgba(7,17,31,0.86);
    border: 1px solid rgba(0,157,255,0.22);
    border-radius: 22px;
    padding: 18px;
    overflow: hidden;
    color: white;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,122,0,0.45);
    box-shadow: 0 0 30px rgba(255,122,0,0.25);
}

.catalog-image {
    height: 155px;
    border-radius: 18px;
    background:
        radial-gradient(circle, rgba(0,157,255,0.20), transparent 55%),
        rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    font-size: 72px;
    margin-top: 18px;
    overflow: hidden;
}

.catalog-image img,
.media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-info {
    padding-top: 16px;
}

.catalog-info h3 {
    font-size: 21px;
    margin: 5px 0;
}

.catalog-info p {
    color: #a7b0c0;
    margin: 0 0 14px;
}

.sku {
    color: #66c9ff;
    font-size: 12px;
    letter-spacing: 1px;
}

.price-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-lines div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.price-lines small {
    color: #a7b0c0;
    display: block;
    margin-bottom: 5px;
}

.price-lines strong {
    color: #ffb000;
    font-size: 16px;
}

.delivery-tags {
    display: grid;
    gap: 7px;
    margin: 14px 0;
    font-size: 14px;
    color: #dfefff;
}

.catalog-actions {
    display: flex;
    gap: 10px;
}

.catalog-actions form {
    flex: 1;
}

.details-btn,
.quick-add-btn {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.details-btn {
    background: rgba(0,157,255,0.16);
    border: 1px solid rgba(0,157,255,0.28);
}

.quick-add-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--orange), #ffb000);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), #ff3d00);
    color: white;
    font-size: 10px;
    font-weight: 900;
    z-index: 2;
}

/* IMAGE FIX EVERYWHERE */

.product-image img,
.catalog-image img,
.big-product-icon img,
.trend-img img,
.cart-img img,
.mini-order-item img,
.order-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* WHATSAPP FLOAT */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: #18c45c;
    color: white;
    font-weight: 900;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(24,196,92,0.45);
    z-index: 1000;
    text-decoration: none;
}

/* MOBILE FIX */

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-box {
        width: 210px;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 12px 16px;
        justify-content: space-between;
    }

    .brand {
        min-width: 0;
        max-width: 210px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        display: none;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.05);
        color: white;
        font-size: 24px;
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        padding: 18px;
        border-radius: 18px;
        background: rgba(5,7,13,0.97);
        border: 1px solid rgba(0,157,255,0.30);
        flex-direction: column;
        align-items: flex-start;
        z-index: 1002;
    }

    .main-nav.open {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .page-hero {
        margin: 18px;
        padding: 24px;
    }

    .shop-tools {
        margin-left: 18px;
        margin-right: 18px;
    }

    .catalog-grid {
        margin-left: 18px;
        margin-right: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-search {
        flex-direction: column;
    }

    .shop-search input {
        max-width: 100%;
    }

    .shop-search button {
        height: 44px;
    }
}

@media (max-width: 540px) {
    .logo-holder,
    .logo-holder img,
    .brand-logo-img {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .catalog-card {
        padding: 16px;
    }

    .catalog-image {
        height: 170px;
    }

    .price-lines {
        grid-template-columns: 1fr;
    }
}