/* ===== Modern E-Commerce Homepage - Premium Redesign ===== */

/* Announcement Bar */
.announcement-bar {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.announcement-bar a {
    color: #f0c040;
    text-decoration: none;
    font-weight: 700;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

/* Hero Section - Full width carousel */
.hero-modern {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-modern .carousel-item {
    position: relative;
}

.hero-modern-slide {
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-modern-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.hero-modern-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    max-width: 580px;
}

.hero-modern-content .tag {
    display: inline-block;
    background: #e84545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 2px;
}

.hero-modern-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 0.8rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-modern-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 480px;
}

.hero-modern-content .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #e84545;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
    border: none;
}

.hero-modern-content .btn-hero:hover {
    background: #d13434;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 69, 69, 0.3);
}

.hero-modern .carousel-indicators {
    bottom: 24px;
}

.hero-modern .carousel-indicators button {
    width: 30px;
    height: 3px;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    border-radius: 0;
}

/* Global dark theme support for ecommerce-specific components */
html[data-site-theme="dark"] .announcement-bar {
    color: #eef6ff;
    background: #070c12;
}

html[data-site-theme="dark"] .ecom-section,
html[data-site-theme="dark"] .modern-section,
html[data-site-theme="dark"] .shop-section,
html[data-site-theme="dark"] .cart-section,
html[data-site-theme="dark"] .checkout-section,
html[data-site-theme="dark"] .account-section {
    color: #eef6ff !important;
    background: #0a1118 !important;
}

html[data-site-theme="dark"] .ecom-card,
html[data-site-theme="dark"] .modern-card,
html[data-site-theme="dark"] .shop-card,
html[data-site-theme="dark"] .cart-card,
html[data-site-theme="dark"] .checkout-card,
html[data-site-theme="dark"] .summary-card,
html[data-site-theme="dark"] .order-card,
html[data-site-theme="dark"] .wishlist-card,
html[data-site-theme="dark"] .product-detail-card {
    color: #eef6ff !important;
    border-color: rgba(255, 255, 255, .10) !important;
    background: rgba(18, 29, 40, .92) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, .30) !important;
}

html[data-site-theme="dark"] .ecom-card h1,
html[data-site-theme="dark"] .ecom-card h2,
html[data-site-theme="dark"] .ecom-card h3,
html[data-site-theme="dark"] .modern-card h1,
html[data-site-theme="dark"] .modern-card h2,
html[data-site-theme="dark"] .modern-card h3,
html[data-site-theme="dark"] .shop-card h1,
html[data-site-theme="dark"] .shop-card h2,
html[data-site-theme="dark"] .shop-card h3,
html[data-site-theme="dark"] .cart-card h1,
html[data-site-theme="dark"] .cart-card h2,
html[data-site-theme="dark"] .cart-card h3,
html[data-site-theme="dark"] .checkout-card h1,
html[data-site-theme="dark"] .checkout-card h2,
html[data-site-theme="dark"] .checkout-card h3 {
    color: #f4f9ff !important;
}

html[data-site-theme="dark"] .ecom-card p,
html[data-site-theme="dark"] .modern-card p,
html[data-site-theme="dark"] .shop-card p,
html[data-site-theme="dark"] .cart-card p,
html[data-site-theme="dark"] .checkout-card p,
html[data-site-theme="dark"] .text-muted {
    color: #a9b8c8 !important;
}

html[data-site-theme="dark"] .price,
html[data-site-theme="dark"] .product-price,
html[data-site-theme="dark"] .cart-price,
html[data-site-theme="dark"] .checkout-price {
    color: #ffffff !important;
}

html[data-site-theme="dark"] .form-control,
html[data-site-theme="dark"] .form-select,
html[data-site-theme="dark"] textarea {
    color: #eef6ff !important;
    border-color: rgba(255, 255, 255, .14) !important;
    background-color: rgba(255, 255, 255, .07) !important;
}

/* Final readable text pass for dark theme */
html[data-site-theme="dark"] h1,
html[data-site-theme="dark"] h2,
html[data-site-theme="dark"] h3,
html[data-site-theme="dark"] h4,
html[data-site-theme="dark"] h5,
html[data-site-theme="dark"] h6,
html[data-site-theme="dark"] .card-title,
html[data-site-theme="dark"] .product-title,
html[data-site-theme="dark"] .product-card-ecom h3,
html[data-site-theme="dark"] .product-card-ecom h4,
html[data-site-theme="dark"] .product-card-ecom h5 {
    color: #f7fbff !important;
}

html[data-site-theme="dark"] p,
html[data-site-theme="dark"] li,
html[data-site-theme="dark"] .card-text,
html[data-site-theme="dark"] .product-card-ecom p,
html[data-site-theme="dark"] .section-subtitle,
html[data-site-theme="dark"] .product-meta {
    color: #bfd0df !important;
}

html[data-site-theme="dark"] .price,
html[data-site-theme="dark"] .product-price,
html[data-site-theme="dark"] .cart-price,
html[data-site-theme="dark"] .checkout-price,
html[data-site-theme="dark"] strong {
    color: #ffffff !important;
}

html[data-site-theme="dark"] a:not(.btn):not(.exzo-btn):not(.nav-link):not(.navbar-brand) {
    color: #d8e7f5;
}

html[data-site-theme="dark"] a:not(.btn):not(.exzo-btn):not(.nav-link):not(.navbar-brand):hover {
    color: #9be25d;
}

/* End-of-file dark theme lock */
html[data-site-theme="dark"] body,
html[data-site-theme="dark"] .site-wrap {
    color: #eef6ff !important;
}

html[data-site-theme="dark"] .card,
html[data-site-theme="dark"] .product-card,
html[data-site-theme="dark"] .glass-card,
html[data-site-theme="dark"] .cart-item,
html[data-site-theme="dark"] .checkout-panel,
html[data-site-theme="dark"] .order-summary,
html[data-site-theme="dark"] .ecom-card,
html[data-site-theme="dark"] .modern-card,
html[data-site-theme="dark"] .shop-card,
html[data-site-theme="dark"] .cart-card,
html[data-site-theme="dark"] .checkout-card,
html[data-site-theme="dark"] .summary-card,
html[data-site-theme="dark"] .product-detail-card {
    color: #eef6ff !important;
    border-color: rgba(255, 255, 255, .10) !important;
    background: rgba(18, 29, 40, .92) !important;
}

html[data-site-theme="dark"] .card *,
html[data-site-theme="dark"] .product-card *,
html[data-site-theme="dark"] .glass-card *,
html[data-site-theme="dark"] .cart-item *,
html[data-site-theme="dark"] .checkout-panel *,
html[data-site-theme="dark"] .order-summary *,
html[data-site-theme="dark"] .ecom-card *,
html[data-site-theme="dark"] .modern-card *,
html[data-site-theme="dark"] .shop-card *,
html[data-site-theme="dark"] .cart-card *,
html[data-site-theme="dark"] .checkout-card *,
html[data-site-theme="dark"] .summary-card *,
html[data-site-theme="dark"] .product-detail-card * {
    color: inherit;
}

html[data-site-theme="dark"] .text-muted,
html[data-site-theme="dark"] small,
html[data-site-theme="dark"] del {
    color: #a9b8c8 !important;
}

.hero-modern .carousel-indicators button.active {
    background: #e84545;
}

.hero-modern .carousel-control-prev,
.hero-modern .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 1;
    font-size: 1.2rem;
    margin: 0 20px;
}

.hero-modern .carousel-control-prev:hover,
.hero-modern .carousel-control-next:hover {
    background: #e84545;
    border-color: #e84545;
}

/* Features Strip */
.features-strip {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1rem;
    border-right: 1px solid #e9ecef;
    text-decoration: none;
    color: #333;
}

.feature-item:last-child {
    border-right: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #e84545;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
}

.feature-text span {
    font-size: 0.76rem;
    color: #6d7680;
}

/* Section Common */
.section-title-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title-center h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.4rem;
}

.section-title-center p {
    color: #6d7680;
    margin: 0;
    font-size: 0.95rem;
}

/* Product Grid - 4 column */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card-ecom {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card-ecom:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #ddd;
}

.product-card-ecom .thumb {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    padding: 1.25rem;
    border-bottom: 1px solid #f0f1f3;
}

.product-card-ecom .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-ecom:hover .thumb img {
    transform: scale(1.06);
}

.product-card-ecom .badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e84545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    z-index: 2;
}

.product-card-ecom .card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.product-card-ecom .category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.25rem;
    display: block;
}

.product-card-ecom h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    min-height: 2.4em;
}

.product-card-ecom h3 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card-ecom h3 a:hover {
    color: #e84545;
}

.product-card-ecom .price-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.product-card-ecom .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e84545;
}

.product-card-ecom .price-old {
    font-size: 0.8rem;
    color: #aaa;
    text-decoration: line-through;
}

.product-card-ecom .btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: #1a1a2e;
    border: 0;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card-ecom .btn-add:hover {
    background: #e84545;
}

/* Category Banners */
.cat-banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 1px;
    background: #e9ecef;
}

.cat-banner-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    min-height: 250px;
}

.cat-banner-card:first-child {
    grid-row: span 2;
}

.cat-banner-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 60%);
    transition: opacity 0.3s ease;
}

.cat-banner-card:hover .overlay {
    opacity: 0.85;
}

.cat-banner-card .content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: #fff;
    width: 100%;
}

.cat-banner-card .content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.cat-banner-card .content span {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.85);
    transition: gap 0.2s ease;
}

.cat-banner-card:hover .content span {
    gap: 0.6rem;
}

/* Media/Video Gallery */
.media-grid-ecom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.media-item-ecom {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f1f3;
}

.media-item-ecom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-item-ecom:hover img {
    transform: scale(1.04);
}

.media-item-ecom .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.media-item-ecom .play-btn:hover {
    background: #e84545;
    border-color: #e84545;
}

/* Brand Logos Strip */
.brand-strip {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
}

.brand-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.brand-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.brand-strip-item:hover {
    opacity: 1;
}

.brand-strip-item img {
    max-width: 100%;
    height: 36px;
    object-fit: contain;
}

/* Hero Showcase */
.hero-showcase {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.hero-showcase-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.hero-showcase-copy h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1rem;
}

.hero-showcase-copy p {
    font-size: 1rem;
    color: #6d7680;
    line-height: 1.75;
    margin: 0 0 1.5rem;
    max-width: 580px;
}

.hero-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e84545;
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #e84545;
    color: #fff;
}

.btn-primary:hover {
    background: #d13434;
    color: #fff;
}

.btn-outline {
    border: 1px solid #111827;
    color: #111827;
}

.btn-outline:hover {
    background: #111827;
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-stats div {
    min-width: 110px;
    padding: 0.8rem 0.9rem;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.hero-stats strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.hero-stats span {
    display: block;
    color: #6d7680;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.hero-photo-card {
    position: relative;
    min-height: 480px;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

.hero-photo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.hero-photo-card__inner {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    max-width: 320px;
    z-index: 2;
}

.hero-photo-card__inner span {
    display: inline-block;
    color: #e84545;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
}

.hero-photo-card__inner h3 {
    color: #111827;
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
}

.hero-photo-card__inner p {
    color: #6d7680;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.feature-band {
    padding: 0 0 40px;
}

.feature-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.03);
}

.feature-pill i {
    color: #e84545;
    font-size: 1rem;
}

.showcase-section {
    padding: 0 0 60px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.15rem;
}

.showcase-card {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.6rem;
    min-height: 220px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(232, 69, 69, 0.2), transparent 45%);
    pointer-events: none;
}

.showcase-card--large {
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
}

.showcase-card__content {
    position: relative;
    z-index: 1;
}

.showcase-card__content h3,
.showcase-card__content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.showcase-card__content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.showcase-link {
    color: #f8c54f;
    font-weight: 700;
    text-decoration: none;
}

.showcase-link:hover {
    color: #fff;
}

.showcase-stack {
    display: grid;
    gap: 1rem;
}

.products-section,
.collections-section {
    padding: 0 0 60px;
}

.newsletter-section {
    background: #111827;
    padding: 50px 0;
    color: #fff;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 2px;
    outline: 0;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: #e84545;
}

.newsletter-form button {
    padding: 0.7rem 1.5rem;
    background: #e84545;
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #d13434;
}

/* Latest Products Slider - Premium Cards */
.latest-section {
    background: #fff;
    padding: 50px 0;
}

.latest-slider-wrap {
    position: relative;
    padding: 0 10px;
}

.latest-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0;
}

.latest-slider::-webkit-scrollbar {
    display: none;
}

.latest-slide {
    flex: 0 0 auto;
    width: 260px;
}

.latest-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: 260px;
    height: 300px;
}

.latest-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    transform: translateY(-6px);
}

.latest-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e84545;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    z-index: 3;
    letter-spacing: 0.02em;
}

.latest-img {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

.latest-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.latest-card:hover .latest-img img {
    transform: scale(1.08);
}

.latest-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    gap: 0.6rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.latest-card:hover .latest-hover-actions {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.latest-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.latest-action-btn:hover {
    background: #e84545;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 69, 69, 0.25);
}

.latest-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.latest-card:hover .latest-img-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.latest-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.latest-arrow:hover {
    background: #e84545;
    color: #fff;
    box-shadow: 0 6px 20px rgba(232, 69, 69, 0.25);
    transform: translateY(-50%) scale(1.06);
}

.latest-arrow-prev {
    left: -16px;
}

.latest-arrow-next {
    right: -16px;
}

@media (max-width: 767px) {
    .latest-slide {
        width: 200px;
    }

    .latest-card {
        width: 200px;
        height: 240px;
    }

    .latest-arrow {
        display: none;
    }
}

/* Footer Modern */
.footer-modern {
    background: #111827;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0;
}

.footer-modern-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-modern h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.footer-modern p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.footer-modern ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern ul li {
    margin-bottom: 0.6rem;
}

.footer-modern ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-modern ul a:hover {
    color: #e84545;
}

.footer-social-icons {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-social-icons a:hover {
    background: #e84545;
    color: #fff;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: #e84545;
}

/* Responsive */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2) {
        border-right: 0;
    }

    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-banner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cat-banner-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .media-grid-ecom {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-modern-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-modern-slide {
        min-height: 420px;
    }

    .hero-modern-content {
        padding: 2rem 0;
    }

    .hero-modern-content h1 {
        font-size: 1.8rem;
    }

    .hero-modern-content p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-item {
        padding: 0.85rem 0.75rem;
    }

    .feature-item:nth-child(2) {
        border-right: 0;
    }

    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-ecom .thumb {
        height: 140px;
    }

    .cat-banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .cat-banner-card:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .cat-banner-card {
        min-height: 180px;
    }

    .media-grid-ecom {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-modern-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Final ecommerce mobile hardening */
@media (max-width: 991.98px) {
    .feature-grid,
    .features-grid,
    .category-grid,
    .product-grid-4,
    .promo-grid,
    .detail-grid,
    .checkout-grid,
    .cart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-ecom,
    .products-section,
    .categories-section,
    .promo-section {
        padding-left: 0;
        padding-right: 0;
    }

    .feature-grid,
    .features-grid,
    .category-grid,
    .product-grid-4,
    .promo-grid,
    .detail-grid,
    .checkout-grid,
    .cart-grid,
    .footer-modern-grid {
        grid-template-columns: 1fr;
    }

    .product-card-ecom {
        border-radius: 10px;
    }

    .product-card-ecom .thumb {
        height: 190px;
    }

    .product-card-ecom .card-body {
        padding: 16px;
    }

    .product-card-ecom h3 {
        font-size: 15px;
        line-height: 1.3;
    }

    .product-card-ecom .price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .product-card-ecom .btn-add,
    .btn-shop,
    .btn-checkout,
    .btn-cart {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .cart-table-wrap,
    .checkout-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-table,
    .checkout-table {
        min-width: 620px;
    }
}

@media (max-width: 420px) {
    .product-grid-4 {
        grid-template-columns: 1fr;
    }

    .product-card-ecom .thumb {
        height: 170px;
    }
}

/* Ecommerce frontend responsive final layer */
.hero-modern,
.hero-showcase,
.products-section,
.categories-section,
.promo-section,
.footer-modern {
    overflow-x: hidden;
}

.hero-modern *,
.hero-showcase *,
.products-section *,
.categories-section *,
.promo-section *,
.footer-modern * {
    min-width: 0;
}

.product-card-ecom,
.feature-item,
.cat-banner-card,
.media-card-ecom,
.brand-item,
.footer-modern-grid > * {
    min-width: 0;
}

.product-card-ecom img,
.cat-banner-card img,
.media-card-ecom img,
.hero-photo-card img {
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .hero-showcase-grid,
    .showcase-grid {
        grid-template-columns: 1fr !important;
    }

    .features-grid,
    .feature-band-grid,
    .product-grid-4,
    .media-grid-ecom {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cat-banner-grid,
    .footer-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hero-photo-card {
        min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .hero-modern-slide {
        min-height: clamp(300px, 76vw, 430px) !important;
    }

    .hero-modern-content {
        width: min(100%, 520px);
        padding: 0 18px;
    }

    .hero-modern-content h1,
    .hero-showcase-copy h1 {
        font-size: clamp(30px, 9vw, 44px);
        line-height: 1.05;
    }

    .hero-modern-content p,
    .hero-showcase-copy p {
        font-size: 15px;
    }

    .features-grid,
    .feature-band-grid,
    .product-grid-4,
    .media-grid-ecom,
    .cat-banner-grid,
    .footer-modern-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-item {
        border-right: 0;
    }

    .product-card-ecom .thumb {
        height: clamp(175px, 52vw, 230px) !important;
    }

    .cat-banner-card {
        min-height: clamp(190px, 58vw, 280px) !important;
    }

    .hero-stats,
    .hero-actions,
    .footer-bottom-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-stats div,
    .hero-actions .btn,
    .product-card-ecom .btn-add {
        width: 100%;
    }

    .footer-modern {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .product-card-ecom .card-body {
        padding: 14px;
    }

    .hero-modern .carousel-control-prev,
    .hero-modern .carousel-control-next {
        width: 38px;
        height: 38px;
    }
}

/* Final ecommerce dark theme lock */
html[data-site-theme="dark"] body,
html[data-site-theme="dark"] .site-wrap {
    color: #eef6ff !important;
}

html[data-site-theme="dark"] .section-light,
html[data-site-theme="dark"] .section-soft,
html[data-site-theme="dark"] .products-modern,
html[data-site-theme="dark"] .categories-modern,
html[data-site-theme="dark"] .featured-modern,
html[data-site-theme="dark"] .cart-section,
html[data-site-theme="dark"] .checkout-section {
    color: #eef6ff !important;
    background: #0a1118 !important;
}

html[data-site-theme="dark"] .card,
html[data-site-theme="dark"] .product-card,
html[data-site-theme="dark"] .product-card-ecom,
html[data-site-theme="dark"] .glass-card,
html[data-site-theme="dark"] .feature-item,
html[data-site-theme="dark"] .cart-item,
html[data-site-theme="dark"] .checkout-panel,
html[data-site-theme="dark"] .order-summary,
html[data-site-theme="dark"] .ecom-card,
html[data-site-theme="dark"] .modern-card,
html[data-site-theme="dark"] .shop-card,
html[data-site-theme="dark"] .cart-card,
html[data-site-theme="dark"] .checkout-card,
html[data-site-theme="dark"] .summary-card,
html[data-site-theme="dark"] .product-detail-card {
    color: #eef6ff !important;
    border-color: rgba(255, 255, 255, .10) !important;
    background: rgba(18, 29, 40, .92) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, .30) !important;
}

html[data-site-theme="dark"] .card *,
html[data-site-theme="dark"] .product-card *,
html[data-site-theme="dark"] .product-card-ecom *,
html[data-site-theme="dark"] .glass-card *,
html[data-site-theme="dark"] .feature-item *,
html[data-site-theme="dark"] .cart-item *,
html[data-site-theme="dark"] .checkout-panel *,
html[data-site-theme="dark"] .order-summary *,
html[data-site-theme="dark"] .ecom-card *,
html[data-site-theme="dark"] .modern-card *,
html[data-site-theme="dark"] .shop-card *,
html[data-site-theme="dark"] .cart-card *,
html[data-site-theme="dark"] .checkout-card *,
html[data-site-theme="dark"] .summary-card *,
html[data-site-theme="dark"] .product-detail-card * {
    color: inherit;
}

html[data-site-theme="dark"] .text-muted,
html[data-site-theme="dark"] small,
html[data-site-theme="dark"] del {
    color: #a9b8c8 !important;
}

html[data-site-theme="dark"] .form-control,
html[data-site-theme="dark"] .form-select,
html[data-site-theme="dark"] textarea {
    color: #eef6ff !important;
    border-color: rgba(255, 255, 255, .14) !important;
    background-color: rgba(255, 255, 255, .07) !important;
}
