/* ==============================================================
   STORE MODULE - PUBLIC FRONTEND
   Inspired by clean, high-converting Inter-based aesthetics
   ============================================================== */

:root {
    --public-primary: #1e40af;
    --public-secondary: #3b82f6;
    --public-bg: #f8fafc;
    --public-text: #0f172a;
    --public-text-muted: #475569;
    --public-white: #ffffff;
    --public-border: #e2e8f0;
    --public-header-height: 80px;
    --primary-rgb: 30, 64, 175;
}

.public-main, .store-container, .store-layout, .checkout-layout {
    overflow: visible !important;
}

.store-layout {
    align-items: start;
}

.rounded-24 { border-radius: 24px !important; }

.selectable-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.selectable-card.active .selectable-icon-box {
    background: var(--primary);
    color: white;
}

/* Cashback Widget Premium */
.cashback-widget-premium {
    background: var(--public-white);
    border: 2px solid var(--public-border);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.cashback-widget-premium:hover {
    border-color: var(--public-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.cashback-widget-premium.active {
    border-color: var(--public-primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.wallet-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--public-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cashback-widget-premium.active .wallet-icon-box {
    background: var(--public-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.widget-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--public-text-muted);
    display: block;
    margin-bottom: 2px;
}

.balance-display {
    font-size: 15px;
    font-weight: 700;
    color: var(--public-text);
}

.widget-toggle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--public-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cashback-widget-premium.active .widget-toggle {
    background: var(--public-primary);
    color: white;
    transform: rotate(45deg);
}

.cashback-input-field {
    background: var(--public-white) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px 16px 12px 42px !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: var(--public-text) !important;
    transition: all 0.3s ease !important;
    height: 52px !important;
}

.cashback-input-field:focus {
    border-color: var(--public-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1) !important;
}

/* Cashback Group & Error Premium */
.cashback-input-group-premium {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    height: 48px !important;
    transition: all 0.3s ease !important;
}

.cashback-input-group-premium:focus-within {
    border-color: var(--public-primary) !important;
}

.cashback-error-premium {
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    color: #dc2626 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.public-body {
    background-color: var(--public-bg);
    color: var(--public-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

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

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Public Header --- */
.public-header {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--public-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.public-header .container {
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    color: var(--public-primary);
}

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

.public-logo i {
    color: var(--public-secondary);
    font-size: 32px;
}

.public-nav {
    display: flex;
    gap: 24px;
}

.public-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
    padding: 8px 4px;
}

.public-nav a:hover, .public-nav a.active {
    color: var(--public-primary);
}

.public-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--public-primary);
    border-radius: 2px;
}

.header-search-wrapper {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    transition: all 0.3s ease;
}

.public-search-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.public-search-container.expanded {
    width: 100%;
    max-width: 500px;
}

.public-search-expand-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--public-border);
    background: #f1f5f9;
    color: var(--public-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.public-search-expand-btn:hover {
    background: var(--public-white);
    color: var(--public-primary);
    border-color: var(--public-primary);
    transform: scale(1.05);
}

.public-search-container.expanded .public-search-expand-btn {
    display: none;
}

.public-search-input-group {
    display: none;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 40px;
    padding: 0 18px;
    height: 44px;
    width: 100%;
    transition: all 0.3s ease;
}

.public-search-container.expanded .public-search-input-group {
    display: flex;
    animation: expandSearch 0.3s forwards;
}

@keyframes expandSearch {
    from { width: 44px; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.inner-search-icon {
    width: 18px;
    height: 18px;
    color: var(--public-primary);
    margin-right: 10px;
}

#public-global-search {
    background: transparent;
    border: none;
    color: var(--public-text);
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.public-search-close-btn {
    background: none;
    border: none;
    color: var(--public-text-muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.public-search-close-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Header state when search is active */
.public-header.search-active .public-nav,
.public-header.search-active .public-logo span {
    display: none !important;
}

.public-header.search-active .header-inner {
    justify-content: space-between;
}

.public-header.search-active .header-left {
    flex: 0;
}

.public-search-mobile {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--public-border);
    border-radius: 12px;
    padding: 0 15px;
    height: 48px;
}

.public-search-mobile i {
    width: 18px;
    height: 18px;
    color: var(--public-primary);
    margin-right: 10px;
}

.public-search-mobile input {
    background: transparent !important;
    border: none !important;
    color: var(--public-text) !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#mobile-search-results {
    width: 100%;
    left: 0;
    top: 100%;
    margin-top: 5px;
    z-index: 100;
}

.public-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--public-white);
    border: 1px solid var(--public-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.public-search-results.active { display: flex; }

.public-search-results .search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--public-text);
    border-bottom: 1px solid var(--public-border);
    transition: 0.2s;
}

.public-search-results .search-item:hover { background: #f8fafc; }

.public-search-results .search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.public-search-results .search-item div {
    display: flex;
    flex-direction: column;
}

.public-search-results .search-item .name {
    font-weight: 700;
    font-size: 14px;
}

.public-search-results .search-item .price {
    font-size: 12px;
    color: var(--public-primary);
    font-weight: 600;
}

.public-search-results .no-results {
    padding: 20px;
    text-align: center;
    color: var(--public-text-muted);
    font-size: 14px;
}

.header-auth {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Single Product Page (Clinica Style) --- */
.product-single { padding: 60px 0; background: var(--public-bg); }

.product-single-grid {
    display: grid;
    grid-template-columns: 750px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.product-single-cover img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-info-card {
    border-radius: 24px;
    padding: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.price-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.price-label.normal { color: #888888; }
.price-label.exclusive { color: #f87171; }

.product-price-row {
    margin-bottom: 24px;
}

.product-price-row .old-value {
    color: #888888;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.product-price-row .new-value {
    font-size: 48px;
    font-weight: 900;
    color: #f87171;
    line-height: 1;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.btn-buy-now {
    background: #3b82f6 !important;
    color: white !important;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-whatsapp {
    background: #22c55e !important;
    color: white !important;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-buy-now:hover, .btn-whatsapp:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.product-description-container {
    margin-top: 40px;
}

.product-description-container h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--public-text);
}

.alert-premium i {
    font-size: 24px;
    color: var(--public-primary);
}

.alert-premium strong {
    color: var(--public-text);
}

/* --- Buttons (Public Site Specific) --- */
.hero .btn-primary, .public-header .btn-primary, .public-footer .btn-primary, .hero .btn-secondary, .public-header .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero .btn-primary, .public-header .btn-primary, .public-footer .btn-primary {
    background: var(--public-primary);
    color: var(--public-white);
    border: none;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hero .btn-primary:hover, .public-header .btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -12px rgba(37, 99, 235, 0.3);
}

.hero .btn-secondary, .public-header .btn-secondary {
    background: var(--public-white);
    border: 1px solid var(--public-border);
    color: var(--public-text);
}

.hero .btn-secondary:hover, .public-header .btn-secondary:hover {
    border-color: var(--public-secondary);
    background: #f8fafc;
}

.btn-card {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-card:hover {
    background: var(--public-primary);
    color: var(--public-white);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stats-item span {
    font-size: 24px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.hero-shop {
    background: linear-gradient(135deg, rgba(var(--public-primary-rgb), 0.05) 0%, rgba(var(--public-secondary-rgb), 0.05) 100%);
    text-align: center;
}

.hero-shop h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
}

.hero-shop p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content { flex: 1; }

.hero-badge {
    background: #e0f2fe;
    color: #0284c7;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0a0f2c;
}

.hero h1 span {
    background: linear-gradient(120deg, var(--public-primary), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--public-text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* --- Store Layout --- */
.store-container { padding: 60px 0; }

.store-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start !important;
}

.store-sidebar {
    position: relative;
    height: auto;
}

.sidebar-card {
    background: var(--public-white);
    border: 1px solid var(--public-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.sidebar-card h4 {
    font-weight: 800;
    font-size: 18px;
    color: var(--public-text);
}

.sidebar-divider {
    padding-top: 32px;
    border-top: 1px solid var(--public-border);
}

.store-search-box {
    width: 100%;
    height: 50px;
    background: #f8fafc;
    border: 1px solid var(--public-border);
}

.store-search-box input {
    font-size: 15px;
}

.no-results-card {
    padding: 80px 40px;
    text-align: center;
    border-radius: 24px;
    background: var(--public-white);
    border: 1px solid var(--public-border);
}

.no-results-card i {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--public-text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
}

.category-link i {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.2s;
}

.category-link:hover {
    background: rgba(var(--public-primary-rgb, 30, 64, 175), 0.05);
    color: var(--public-primary);
}

.category-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

.category-link.active {
    background: var(--public-primary);
    color: white !important;
}

.category-link.active i {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* --- Cashback Styles --- */
.cashback-badge-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 64, 175, 0.05);
    color: var(--public-primary);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 12px;
    border: 1px dashed rgba(30, 64, 175, 0.3);
}

.cashback-badge-card i {
    width: 14px;
    height: 14px;
    color: #f59e0b;
}

.cashback-badge-card b {
    font-weight: 800;
}

.product-cashback-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cashback-badge-single {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cashback-badge-single i {
    width: 24px;
    height: 24px;
    color: #fbbf24;
}

.cashback-badge-single b {
    font-size: 16px;
    font-weight: 900;
}

/* --- Product Sections --- */
.section-featured {
    padding: 100px 0 60px;
    background: var(--public-white);
}

.section-header {
    text-align: center !important;
    margin-bottom: 64px !important;
    width: 100% !important;
    display: block !important;
}

.section-header h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
    width: 100% !important;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* --- Product Cards --- */
/* --- Premium Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--public-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card-cover {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    padding: 12px;
}

.product-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-card-cover img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.product-card-badge .status-badge {
    background: #ff5722 !important;
    color: white !important;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.5;
}

.product-card-description {
    font-size: 13px;
    color: var(--public-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.6em; /* Ensure consistent height for 3 lines */
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.product-card-price .old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-card-price .current-price {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.savings-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card-actions .btn-buy-now,
.product-card-actions .btn-details-glass {
    width: 100%;
    margin-bottom: 0 !important;
}

.product-card:hover .product-card-actions {
    max-height: 120px;
    opacity: 1;
    margin-top: 8px;
}

/* --- Premium Buttons --- */
.btn-buy-now {
    background: var(--public-primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-buy-now:hover {
    background: var(--public-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--public-primary-rgb, 30, 64, 175), 0.2);
}

.btn-details-glass {
    background: #f1f5f9;
    color: var(--public-text);
    border: 1px solid var(--public-border);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-details-glass:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}



.badge-savings {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.badge-savings i {
    width: 14px;
    height: 14px;
}

.btn-card-premium {
    background: var(--public-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-card-premium:hover {
    background: var(--public-secondary);
    box-shadow: 0 10px 20px -10px rgba(var(--public-secondary-rgb, 59, 130, 246), 0.5);
}

/* --- Footer --- */
.public-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-info h3 { color: var(--public-white); font-size: 24px; margin-bottom: 20px; }
.footer-links h4 { color: var(--public-white); margin-bottom: 24px; }
.footer-links a { color: #94a3b8; text-decoration: none; margin-bottom: 12px; display: block; transition: 0.2s; }
.footer-links a:hover { color: var(--public-white); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-image { order: -1; }
    .store-layout { grid-template-columns: 1fr !important; }
    .store-sidebar { position: static; height: auto; margin-bottom: 24px; }
    .product-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .container { padding: 0 20px !important; }
    .hero h1 { font-size: 36px !important; }
}


/* --- WhatsApp Button Fix --- */
.btn-whatsapp {
    text-decoration: none !important;
}

/* --- Floating Cart --- */
.floating-cart-trigger {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: var(--public-primary) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    transition: 0.3s !important;
}

.floating-cart-trigger:hover {
    transform: scale(1.1) translateY(-5px);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100vw;
    height: 100%;
    background: var(--public-white);
    z-index: 100001;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--public-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    margin: 0;
    font-weight: 800;
    font-size: 24px;
}

.cart-drawer-header h3 span {
    color: var(--public-primary);
}

.close-cart {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}

.close-cart:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-drawer-footer {
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid var(--public-border);
}

.cart-item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-row {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-info { flex: 1; }

.cart-item-title { font-weight: 700; margin-bottom: 4px; font-size: 16px; }

.cart-item-price { color: var(--public-primary); font-weight: 800; font-size: 15px; }

.remove-item-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    padding: 4px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.remove-item-btn i {
    width: 18px;
    height: 18px;
}

#cart-total-value {
    color: var(--public-primary);
    letter-spacing: -1px;
    font-size: 32px !important;
    font-weight: 900 !important;
}

.cart-drawer-footer .text-muted {
    color: var(--public-text) !important;
    font-weight: 700;
    font-size: 16px;
}

/* --- Cart Drawer Buttons --- */
.cart-drawer-footer .btn-primary {
    background: var(--public-primary);
    color: white;
    border: none;
    transition: all 0.3s;
}

.cart-drawer-footer .btn-primary:hover {
    background: var(--public-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--public-primary-rgb, 30, 64, 175), 0.3);
}

.cart-drawer-footer .btn-secondary {
    background: #f1f5f9;
    color: var(--public-primary);
    border: 1px solid var(--public-border);
    transition: 0.2s;
}

.cart-drawer-footer .btn-secondary:hover {
    background: #e2e8f0;
}

/* --- Quantity Selector --- */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    width: fit-content;
    margin-bottom: 24px;
    border: 1px solid var(--public-border);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--public-text);
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:hover { 
    background: var(--public-primary); 
    color: white; 
}

.qty-input {
    width: 50px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--public-text);
    outline: none;
}

/* --- Checkout Page Premium --- */
.checkout-page {
    background: var(--bg-dark);
}

.checkout-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-info {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.checkout-item-img {
    width: 70px;
    height: 70px;
    background: var(--bg-dark);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary);
    border: 1px solid var(--border);
}

.checkout-item-details h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.checkout-item-details p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-summary-box {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checkout-total-row.grand-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border);
}

.checkout-total-row span:first-child {
    color: var(--text-muted);
    font-weight: 600;
}

.checkout-total-row span:last-child {
    font-weight: 800;
    color: var(--text-main);
}

.checkout-total-row.grand-total span:last-child {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.btn-checkout-pay {
    width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.2);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-checkout-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.3);
}

.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .checkout-layout {
        flex-direction: row;
        align-items: flex-start !important;
    }
    
    .is-sticky-column {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        z-index: 10;
        align-self: start !important;
        height: fit-content !important;
    }
    
    .checkout-right-col {
        width: 620px;
        flex-shrink: 0;
    }
}

/* --- Mobile Menu & Responsive Header --- */
.hidden-desktop { display: none !important; }

.btn-mobile-menu {
    background: transparent;
    border: none;
    color: var(--public-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-drawer {
    position: fixed; top: 0; right: -320px; width: 320px; height: 100%;
    background: var(--public-white);
    z-index: 10000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex; flex-direction: column;
}
.mobile-menu-drawer.active { right: 0; }

.mobile-menu-header {
    padding: 24px; border-bottom: 1px solid var(--public-border);
    display: flex; align-items: center; justify-content: space-between;
}
.btn-close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: var(--public-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}

.btn-close-menu:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}
.mobile-menu-content { padding: 24px; overflow-y: auto; flex: 1; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { text-decoration: none; color: var(--public-text); font-weight: 600; display: flex; align-items: center; font-size: 16px; }

@media (max-width: 992px) {
    .hidden-desktop { display: flex !important; }
    .hidden-mobile { display: none !important; }
    
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0;
    }
    
    .header-inner::before {
        content: '';
        display: block;
        grid-column: 1;
    }
    
    .header-left {
        grid-column: 2;
        justify-content: center;
        gap: 0;
        margin: 0;
    }
    
    .header-mobile-right {
        grid-column: 3;
        justify-content: flex-end;
    }
    
    /* Fix checkout items on mobile */
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .checkout-item .text-right {
        text-align: left !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px dashed var(--public-border);
    }
    
    /* Checkout Header Mobile */
    .checkout-header {
        flex-direction: column;
        align-items: stretch !important;
        text-align: left;
    }
    
    .checkout-header > .flex {
        width: 100%;
    }
    
    .checkout-header .checkout-secure-badge {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }
    
    /* Product Single Responsive */
    .product-single-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .product-single-cover img {
        border-radius: 20px !important;
    }
    
    .product-single-info h1 {
        font-size: 28px !important;
        margin-top: 20px;
    }
    
    .new-value {
        font-size: 36px !important;
    }
    
    .product-info-card {
        padding: 24px !important;
    }
    
    .badge-savings {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--public-primary);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--public-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.benefit-icon svg, .benefit-icon i {
    width: 38px !important;
    height: 38px !important;
}

.benefit-item:hover .benefit-icon {
    background: var(--public-primary);
    color: white;
}

.benefit-item h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--public-text);
}

.benefit-item p {
    color: var(--public-text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
}

@media (max-width: 768px) {
    .benefits-grid {
        gap: 40px;
    }
    .benefit-item {
        min-width: 100%;
    }
}



/* --- Product Single --- */
.product-single-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 8px;
}

.category-status-badge {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-savings-badge {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.product-divider {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.guarantee-alert {
    background: white;
    border: 1px solid var(--public-border);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.guarantee-alert i {
    color: var(--public-primary);
    width: 32px;
    height: 32px;
}

.guarantee-alert strong {
    color: var(--public-text);
    display: block;
    margin-bottom: 2px;
}

/* --- Checkout Styles --- */
.checkout-payment-logo {
    height: 22px;
    object-fit: contain;
}

.checkout-payment-logo.small {
    height: 14px;
}

.checkout-payment-logo.medium {
    height: 20px;
}

.checkout-secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--public-border);
}

.checkout-info-box {
    margin-top: 40px;
    padding: 24px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: start;
    gap: 16px;
}
