/* Storefront Specific Premium Styling */

/* Hero Section */
.store-hero {
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 50%),
                var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(130px);
    opacity: 0.2;
    pointer-events: none;
}

/* Category Filters */
.category-filter-btn {
    background: rgba(30, 32, 45, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.category-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.veg-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.09);
    color: #d1fae5;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.veg-filter-chip input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #10b981;
}

.veg-filter-note {
    color: rgba(209, 250, 229, 0.82);
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-focus);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Category Specific Badges */
.badge-food {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
}
.badge-gift {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
}
.badge-beauty {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
}
.badge-grocery {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}
.badge-dress {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
}
.badge-educational {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
}

.product-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Beauty Attributes Badges */
.beauty-attribute-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

.beauty-attr-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
}

.beauty-attr-badge i {
    font-size: 0.7rem;
}

.badge-skin-type {
    border-color: rgba(6, 182, 212, 0.3);
    color: #cffafe;
}

.badge-gender {
    border-color: rgba(167, 139, 250, 0.3);
    color: #ede9fe;
}

/* Customer Status Slider */
.customer-status-slider {
    position: relative;
    width: 100%;
    border: 1px solid rgba(13, 202, 240, 0.22);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.08), rgba(124, 58, 237, 0.06)), rgba(10, 11, 16, 0.68);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.customer-status-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 190px;
    max-height: 360px;
    background: rgba(0, 0, 0, 0.28);
}

.customer-status-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.012);
    transition: opacity 0.55s ease, transform 0.55s ease;
    cursor: pointer;
    user-select: none;
}

.customer-status-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.customer-status-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.customer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    transition: all 0.25s ease;
}

.customer-status-dot.active {
    width: 22px;
    border-radius: 999px;
    background: #ffffff;
}

.customer-status-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5rem;
}

.product-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-actual {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-mrp {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.25rem;
}

.price-saving {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

/* Buy Action Button */
.btn-buy-product {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.product-card:hover .btn-buy-product {
    background: var(--accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Portals Navigation Styling */
.portal-dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 0.5rem !important;
    min-width: 250px !important;
    backdrop-filter: blur(12px);
}

.portal-dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.7rem 1rem !important;
    border-radius: 8px !important;
    transition: all var(--transition-speed) ease !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.portal-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.portal-dropdown-item:hover {
    color: var(--text-primary) !important;
    background: rgba(124, 58, 237, 0.15) !important;
    transform: translateX(4px);
}

.portal-divider {
    border-top: 1px solid var(--border-color) !important;
    margin: 0.4rem 0 !important;
}

/* Custom Search Container */
.search-container {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: color var(--transition-speed);
}

.store-search-input {
    padding-left: 2.7rem !important;
    padding-right: 2.7rem !important;
}

.store-search-input:focus ~ .search-icon {
    color: var(--accent);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0;
    display: none;
    transition: color var(--transition-speed);
}

.clear-search-btn:hover {
    color: var(--danger);
}

/* Skeleton Loading Cards */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    padding: 0;
}

.skeleton-img {
    padding-top: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.5rem;
}

.skeleton-text.title {
    width: 70%;
    height: 20px;
    margin-top: 1.25rem;
    margin-left: 1.25rem;
}

.skeleton-text.desc-1 {
    width: 85%;
    margin-left: 1.25rem;
    margin-top: 0.75rem;
}

.skeleton-text.desc-2 {
    width: 55%;
    margin-left: 1.25rem;
}

.skeleton-text.price {
    width: 35%;
    height: 24px;
    margin-left: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Empty Search State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    max-width: 500px;
    margin: 2rem auto;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Nav Badge */
.user-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Mobile Responsiveness upgrades */
@media (max-width: 768px) {
    .customer-status-slider {
        border-radius: 14px;
    }
    .customer-status-frame {
        aspect-ratio: 16 / 9;
        min-height: 170px;
        max-height: none;
    }
    .customer-status-dots {
        bottom: 9px;
    }
    header.admin-navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    header.admin-navbar .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    header.admin-navbar > div > a {
        order: 1;
    }
    header.admin-navbar > div > div:not(.search-container) {
        order: 2;
    }
}

@media (max-width: 576px) {
    .customer-status-frame {
        aspect-ratio: 4 / 3;
        min-height: 155px;
    }
    .customer-status-dot {
        width: 7px;
        height: 7px;
    }
    .customer-status-dot.active {
        width: 18px;
    }
    .product-details {
        padding: 0.75rem;
    }
    .product-title {
        font-size: 0.95rem;
    }
    .product-desc {
        font-size: 0.75rem;
        min-height: 2.25rem;
        margin-bottom: 0.75rem;
    }
    .price-actual {
        font-size: 1rem;
    }
    .price-mrp {
        font-size: 0.75rem;
    }
    .price-saving {
        font-size: 0.65rem;
    }
    .btn-buy-product {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    .category-filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .store-hero {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .store-hero h1 {
        font-size: 1.8rem !important;
    }
    .store-hero p {
        font-size: 1rem !important;
    }
}
/* Store responsive polish layer */
@media (max-width: 991.98px) {
    .store-hero {
        padding: 2.25rem 1.5rem;
        border-radius: 16px;
    }

    .category-filter-btn {
        border-radius: 12px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card:hover,
    .product-card:hover .product-img {
        transform: none;
    }

    .product-meta {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .store-hero {
        padding: 1.5rem 1rem;
    }

    .hero-glow {
        width: 180px;
        height: 180px;
        filter: blur(90px);
    }

    .category-filter-btn {
        padding: 0.48rem 0.75rem;
        font-size: 0.78rem;
        flex: 0 0 auto;
    }

    .product-img-wrapper {
        padding-top: 86%;
    }

    .product-details {
        padding: 0.9rem;
    }

    .product-meta {
        gap: 0.75rem;
    }

    .btn-buy-product {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .store-hero {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .product-title {
        -webkit-line-clamp: 2;
        min-height: 2.6em;
    }

    .product-desc {
        -webkit-line-clamp: 2;
    }

    .product-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .price-container {
        width: 100%;
    }

    .btn-buy-product {
        width: 100%;
    }

    .product-badge,
    .product-stock-badge {
        font-size: 0.64rem;
        padding: 0.28rem 0.5rem;
    }
}
