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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7fb;
    color: #1f2937;
}

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

.top-bar {
    background: #111827;
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
}

.header {
    background: #ffffff;
    padding: 18px 8%;
    display: grid;
    grid-template-columns: auto minmax(260px, 620px) auto;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
    white-space: nowrap;
}

.logo span {
    color: #0ea5e9;
}

.search-box {
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 14px;
    outline: none;
    background: #f9fafb;
    color: #6b7280;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
}

.auth-links a:hover {
    color: #0ea5e9;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    padding: 14px 8%;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 700;
}

.nav a {
    color: #374151;
}

.nav a:hover {
    color: #0ea5e9;
}

.main {
    padding: 35px 8%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1.15fr;
    gap: 25px;
    align-items: stretch;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.35), transparent 18%),
        radial-gradient(circle at 75% 85%, rgba(14, 165, 233, 0.7), transparent 26%),
        linear-gradient(135deg, #0f172a, #0284c7 55%, #06b6d4);
    color: #ffffff;
    padding: 58px;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(2, 132, 199, 0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-banner h1 {
    max-width: 680px;
    font-size: 54px;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-banner p {
    font-size: 18px;
    max-width: 560px;
    line-height: 1.65;
    color: #e0f2fe;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-highlights span {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-visual {
    position: relative;
    min-height: 280px;
    z-index: 2;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-radius: 20px;
    padding: 22px;
    min-width: 170px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.hero-card span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.hero-card strong {
    font-size: 24px;
    color: #0284c7;
}

.hero-card-one {
    top: 30px;
    right: 45px;
}

.hero-card-two {
    bottom: 40px;
    left: 5px;
}

.hero-circle {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    right: 10px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.side-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.side-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.side-card-header h3 {
    margin-bottom: 0;
    font-size: 21px;
    color: #111827;
}

.side-card-header span {
    font-size: 13px;
    color: #0284c7;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.category-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    transition: 0.2s ease;
}

.category-item:hover {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0284c7;
    transform: translateY(-2px);
}

.section {
    margin-top: 35px;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-subtitle {
    display: inline-block;
    color: #0284c7;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 23px;
    margin-bottom: 0;
    color: #111827;
}

.section-note {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    background: #ffffff;
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #0f172a;
    color: #ffffff;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.product-image {
    height: 180px;
    border-radius: 16px 16px 0 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.22), transparent 25%),
        linear-gradient(135deg, #eef2ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.product-image span {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #ffffff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.product-info {
    padding: 16px;
}

.product-category {
    font-size: 12px;
    color: #0284c7;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-info h4 {
    font-size: 15px;
    color: #111827;
    line-height: 1.4;
    min-height: 42px;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating span {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
}

.rating small {
    color: #6b7280;
    font-size: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.price-row strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.price-row del {
    color: #9ca3af;
    font-size: 13px;
}

.stock-text {
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
}

.trust-section {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 28%),
        #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.trust-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    transition: 0.2s ease;
}

.trust-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: #bae6fd;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.trust-card h4 {
    font-size: 17px;
    color: #111827;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.site-footer {
    margin-top: 35px;
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 8% 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
    display: inline-block;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-logo span {
    color: #38bdf8;
}

.footer-brand p {
    max-width: 360px;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 14px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-column a,
.footer-column p {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 11px;
    line-height: 1.5;
}

.footer-column a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 950px) {
    .header {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .auth-links {
        justify-content: center;
    }

    .nav {
        overflow-x: auto;
        gap: 22px;
    }

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

    .hero-banner {
        grid-template-columns: 1fr;
    }

    .hero-banner h1 {
        font-size: 40px;
    }

    .hero-visual {
        min-height: 230px;
    }

    .product-grid,
    .trust-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .main,
    .header,
    .nav,
    .site-footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-banner {
        padding: 34px 24px;
        min-height: auto;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .hero-banner p {
        font-size: 16px;
    }

    .hero-highlights {
        gap: 8px;
    }

    .hero-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin-bottom: 14px;
        min-width: 100%;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-circle {
        display: none;
    }

    .product-grid,
    .category-grid,
    .trust-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 170px;
    }
}

/* Fancy Category Cards */
.category-item {
    position: relative;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.category-item::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e0f2fe;
    display: block;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.category-item::after {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 21px;
}

.category-item:nth-child(1)::after {
    content: "👗";
}

.category-item:nth-child(2)::after {
    content: "💻";
}

.category-item:nth-child(3)::after {
    content: "💄";
}

.category-item:nth-child(4)::after {
    content: "🏠";
}

.category-item:nth-child(5)::after {
    content: "🧸";
}

.category-item:nth-child(6)::after {
    content: "🎒";
}

.category-item:hover::before {
    background: #bae6fd;
    transform: scale(1.08);
    transition: 0.2s ease;
}

/* Header Polish */
.top-bar {
    background: linear-gradient(90deg, #020617, #111827, #020617);
    letter-spacing: 0.2px;
}

.header {
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.logo::before {
    content: "🛍️";
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 8px;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.12);
}

.search-box {
    position: relative;
}

.search-box::after {
    content: "⌕";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 23px;
    line-height: 1;
    pointer-events: none;
}

.search-box input {
    padding-right: 52px;
    border-color: #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.auth-links {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.auth-links a {
    font-weight: 700;
}

.auth-links a:first-child::before {
    content: "👤";
    margin-right: 6px;
}

.auth-links a:last-child::before {
    content: "✨";
    margin-right: 6px;
}

.nav {
    border-bottom: 1px solid #eef2f7;
}

.nav a {
    position: relative;
    padding: 4px 0;
}

.nav a:first-child {
    color: #0284c7;
}

.nav a:first-child::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 3px;
    background: #0284c7;
    border-radius: 999px;
}

@media (max-width: 950px) {
    .logo {
        justify-content: center;
    }

    .search-box::after {
        right: 16px;
    }

    .auth-links {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .top-bar {
        font-size: 13px;
        line-height: 1.5;
    }

    .logo {
        font-size: 24px;
    }

    .logo::before {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .auth-links {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 18px;
    }

    .nav a:first-child::after,
    .nav a:hover::after {
        bottom: -14px;
    }
}

/* Final Responsive Polish */
@media (max-width: 1100px) {
    .main {
        padding-top: 28px;
    }

    .hero-banner h1 {
        font-size: 46px;
    }

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

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

@media (max-width: 768px) {
    .top-bar {
        padding: 9px 14px;
    }

    .header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .search-box input {
        font-size: 13px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .nav {
        gap: 24px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-banner {
        border-radius: 18px;
    }

    .side-card,
    .section {
        border-radius: 16px;
    }

    .category-item {
        min-height: 92px;
    }

    .product-info h4 {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    body {
        background: #f8fafc;
    }

    .top-bar {
        font-size: 12px;
    }

    .header {
        gap: 14px;
    }

    .logo {
        font-size: 22px;
    }

    .auth-links {
        width: 100%;
        padding: 10px 12px;
        gap: 10px;
        font-size: 13px;
    }

    .nav {
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 13px;
    }

    .main {
        padding-top: 24px;
    }

    .hero-banner {
        gap: 22px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 13px;
    }

    .hero-banner h1 {
        font-size: 29px;
        line-height: 1.15;
    }

    .hero-banner p {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-highlights span {
        font-size: 12px;
        padding: 9px 12px;
    }

    .side-card,
    .section {
        padding: 20px;
    }

    .section-title {
        font-size: 21px;
    }

    .section-subtitle,
    .section-note {
        font-size: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-image span {
        width: 70px;
        height: 70px;
        font-size: 13px;
    }

    .trust-card {
        padding: 20px;
    }

    .site-footer {
        margin-top: 30px;
        padding-top: 38px;
    }

    .footer-logo {
        font-size: 24px;
    }
}

/* Product Real Images */
.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Product Image Fit Fix */
.product-image {
    background: #f8fafc;
    padding: 12px;
}

.product-image img {
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
}

/* Product Card Final Alignment */
.product-grid {
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    height: 210px;
    flex-shrink: 0;
}

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

.product-info h4 {
    min-height: 44px;
}

.rating {
    margin-top: auto;
}

.price-row {
    min-height: 26px;
}

.stock-text {
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .product-image {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .product-image {
        height: 230px;
    }

    .product-info h4 {
        min-height: auto;
    }
}

/* Electronics logo badge */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .theme-badge {
        font-size: 11px;
        padding: 5px 9px;
    }
}

/* Electronics logo replacement */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.logo::before {
    content: "💻";
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 4px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

/* remove old badge look if any old CSS exists */
.theme-badge {
    display: none !important;
}

/* Electronics logo text spacing fix */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo .brand-text {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.logo .brand-text span {
    margin-left: 0;
}

/* Electronics logo text color fix */
.logo .brand-text {
    color: #111827;
}

.logo .brand-text > span {
    color: #0ea5e9;
}

/* Electronics category related icons fix */
.category-item:nth-child(1)::after {
    content: "⌚";
}

.category-item:nth-child(2)::after {
    content: "🎧";
}

.category-item:nth-child(3)::after {
    content: "⚙️";
}

.category-item:nth-child(4)::after {
    content: "💻";
}

.category-item:nth-child(5)::after {
    content: "🔌";
}

.category-item:nth-child(6)::after {
    content: "🎒";
}

/* Remove decorative hero circle from electronics hero */
.hero-circle {
    display: none !important;
}

/* Show decorative hero circle again */
.hero-circle {
    display: block !important;
}

/* Electronics hero full orbit animation */
.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-circle {
    display: block !important;
    position: absolute;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    z-index: 1;
}

.hero-card {
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2;
    animation-duration: 16s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    will-change: transform;
}

.hero-card-one {
    animation-name: electronicsOrbitOne !important;
}

.hero-card-two {
    animation-name: electronicsOrbitTwo !important;
}

@keyframes electronicsOrbitOne {
    0% {
        transform: translate(-50%, -50%) rotate(300deg) translateX(150px) rotate(-300deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(660deg) translateX(150px) rotate(-660deg);
    }
}

@keyframes electronicsOrbitTwo {
    0% {
        transform: translate(-50%, -50%) rotate(120deg) translateX(150px) rotate(-120deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(480deg) translateX(150px) rotate(-480deg);
    }
}

@media (max-width: 600px) {
    .hero-visual {
        min-height: auto;
    }

    .hero-circle {
        display: none !important;
    }

    .hero-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        margin-bottom: 14px;
        width: 100%;
    }
}

/* Storefront product carousel */
.storefront-carousel-wrap {
    position: relative;
    width: 100%;
}

.storefront-carousel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}

.storefront-carousel-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: #ffffff;
    color: #f97316;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.storefront-carousel-btn:hover {
    background: #fff7ed;
}

.storefront-product-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.storefront-product-row > * {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.storefront-product-row::-webkit-scrollbar {
    height: 8px;
}

.storefront-product-row::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.35);
    border-radius: 999px;
}

/* Modern Grid carousel color */
.storefront-carousel-btn {
    border-color: rgba(37, 99, 235, 0.45);
    color: #2563eb;
}
.storefront-carousel-btn:hover {
    background: #eff6ff;
}
.storefront-product-row::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.42);
}

/* Smooth featured category navigation */
html {
    scroll-behavior: smooth;
}

/* Auto category icons from backend */
.category-item::before {
    content: none !important;
    display: none !important;
}

.category-auto-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #e0f2fe;
    font-size: 18px;
}


/* Modern Grid category icon layout fix */
.category-item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.category-item::before,
.category-item::after {
    content: none !important;
    display: none !important;
}

.category-auto-icon {
    display: flex !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 22px;
    line-height: 1;
}

.category-auto-name {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

#featured-categories .category-item {
    min-height: 92px;
}


/* Modern Grid featured category compact cards */
.featured-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 16px;
    align-items: stretch;
}

.featured-category-card {
    min-height: 128px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    padding: 18px 16px;
    transition: 0.2s ease;
}

.featured-category-card:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.featured-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.featured-category-card strong {
    font-size: 14px;
    font-weight: 800;
}

.featured-category-card small {
    max-width: 180px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}


/* Modern Grid featured category compact cards - fixed */
#featured-categories .featured-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 16px;
    align-items: stretch;
}

#featured-categories .featured-category-card {
    min-height: 128px;
    max-width: 240px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    padding: 18px 16px;
    transition: 0.2s ease;
}

#featured-categories .featured-category-card:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
}

#featured-categories .featured-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

#featured-categories .featured-category-card strong {
    font-size: 14px;
    font-weight: 800;
}

#featured-categories .featured-category-card small {
    max-width: 180px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

/* Modern Grid featured category compact cards - final */
#featured-categories .featured-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    gap: 16px;
    align-items: stretch;
}

#featured-categories .featured-category-card {
    min-height: 128px;
    max-width: 240px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    padding: 18px 16px;
    transition: 0.2s ease;
}

#featured-categories .featured-category-card:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
}

#featured-categories .featured-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

#featured-categories .featured-category-card strong {
    font-size: 14px;
    font-weight: 800;
}

#featured-categories .featured-category-card small {
    max-width: 180px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

/* Product detail link button */
.product-detail-link {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.product-detail-link:hover {
    background: #0284c7;
}

