/* WebStore Custom Styles */

:root {
    --primary: #ffc107;
    --dark: #212529;
}

body {
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
    min-width: 1.2em;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 420px;
}

/* Products */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

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

/* Category card */
.category-card {
    transition: all 0.2s ease;
    border-radius: 12px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    background: #fff8e1 !important;
}

/* Cart */
.cart-item {
    transition: background-color 0.15s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Checkout Steps */
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.step-line {
    height: 2px;
    background-color: #dee2e6;
    align-self: flex-start;
    margin-top: 17px;
}

/* Shipping options */
.shipping-option {
    cursor: pointer;
    transition: border-color 0.15s;
}

.shipping-option:hover {
    border-color: #ffc107 !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #dee2e6;
}

.timeline-item {
    position: relative;
    margin-left: -26px;
}

.timeline-dot {
    flex-shrink: 0;
}

/* Stars Rating */
.rating-stars .star-label {
    color: #dee2e6;
    transition: color 0.1s;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars label {
    cursor: pointer;
}

/* Admin */
.admin-sidebar {
    min-height: calc(100vh - 56px);
}

/* Search suggestions */
#searchSuggestions {
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: none;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.1s;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Product gallery */
.product-gallery .main-image {
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }

    #searchSuggestions {
        width: 300px;
    }

    .product-img {
        height: 160px;
    }
}

/* Misc utilities */
.fw-600 {
    font-weight: 600;
}

.text-yellow {
    color: #ffc107;
}

/* Variants */
.variant-btn.active {
    border-color: #212529;
    background: #212529;
    color: white;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Placeholder image */
img[src*="placeholder"] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    object-fit: cover;
}
