:root {
    --primary-color: #83276b;
    --primary-hover: #691d55;
    --secondary-color: #ff3f6c;
    --accent-color: #f43397;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --rating-star: #e9a615;
    --success-color: #03a685;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fbfbfb;
    color: var(--text-dark);
    margin: 0;
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

a:hover {
    color: var(--accent-color);
}

/* Navbar & Header */
.shopkart-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.brand-logo span {
    color: var(--secondary-color);
}

.search-input-group {
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(131, 39, 107, 0.15);
}

.search-input-group input {
    border: none;
    padding: 0.65rem 1rem;
    box-shadow: none !important;
}

.search-input-group button {
    background: #ffffff;
    border: none;
    color: var(--text-muted);
    padding: 0 1.25rem;
}

/* Category Strip */
.cat-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar {
    display: none;
}

.cat-strip-link {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #495057;
    transition: color 0.15s ease-in-out;
}

.cat-strip-link:hover {
    color: var(--accent-color);
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-thumb-wrap {
    position: relative;
    padding-top: 100%;
    background-color: #f8f9fa;
    overflow: hidden;
}

.product-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
    transform: scale(1.04);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-wishlist-float {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-wishlist-float:hover,
.btn-wishlist-float.active {
    color: var(--secondary-color);
    background: #ffffff;
}

.product-info-wrap {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0.35rem;
}

.sale-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mrp-price {
    font-size: 0.82rem;
    color: #8c98a4;
    text-decoration: line-through;
}

.rating-badge {
    background-color: var(--success-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #6c757d;
    text-decoration: none;
    flex: 1;
    position: relative;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-badge-counter {
    position: absolute;
    top: -2px;
    right: 32%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.65rem;
    border-radius: 50%;
    padding: 1px 5px;
    font-weight: bold;
}

/* Auth Cards */
.auth-container {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.btn-primary-sk {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-primary-sk:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

/* Image Gallery in Product Detail */
.main-preview-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-preview-box img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.gallery-thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.gallery-thumb-item {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-thumb-item.active {
    border-color: var(--primary-color);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variants Selector Pills */
.variant-btn-check {
    display: none;
}

.variant-btn-label {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s ease;
    font-weight: 500;
}

.variant-btn-check:checked + .variant-btn-label {
    border-color: var(--primary-color);
    background-color: rgba(131, 39, 107, 0.08);
    color: var(--primary-color);
    font-weight: 700;
}