/* /assets/css/style.css */
:root {
    --flip-blue: #2874F0;
    --flip-yellow: #FFE500;
    --flip-red: #FF6161;
    --flip-green: #388e3c;
    --flip-orange: #fb641b; /* Flipkart checkout color */
    --phonepe-purple: #6739B7; /* PhonePe brand color */
}
.autoColorBox {
  transition: background-color 1s ease-in-out;
}

.best-quality-box {
    background: #dff0f7;
    padding: 18px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
}

.bqb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 2px 15px 2px;
}

.bqb-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.bqb-arrow {
    font-size: 22px;
    font-weight: bold;
}

.bqb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bqb-card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bqb-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}

.bqb-cat {
    font-size: 14px;
    margin-top: 10px;
    color: #444;
}

.bqb-tag {
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
    color: #000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f2f4; /* Light gray background */
}
.header-bg {
    background-color: var(--flip-blue);
}
.product-card {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08); 
    transition: transform 0.2s;
    cursor: pointer;
    min-height: 280px;
    padding: 8px;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

/* Styling for horizontal scroll sections */
.horizontal-scroll {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Smaller card for horizontal scrollers */
.deal-card {
    width: 150px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}
.deal-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Category Icons */
.category-item {
    width: 70px; /* Tighter width */
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    padding-top: 4px;
    text-decoration: none;
}
.category-icon-box {
    height: 50px;
    margin-bottom: 4px;
}

/* Custom style for the green rating badge */
.rating-badge {
    background-color: var(--flip-green); /* Flipkart green */
    color: white;
    font-weight: 600;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

/* Slider specific styles */
.slider-image {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.slider-image.active {
    opacity: 1;
    position: relative; 
}
.slider-container {
    aspect-ratio: 400 / 180;
}

/* Modal styles */
.modal-container {
    transition: transform 0.3s ease-out;
    transform: translateX(100%);
}
.modal-container.open {
    transform: translateX(0);
}

/* Address form field styling from image */
.address-input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.25;
}
.address-input:focus {
    border-color: var(--flip-blue);
}
/* Custom placeholder style to mimic the floating label effect */
.address-input::placeholder {
    color: transparent; /* Hide placeholder text */
}
.address-field-group {
    position: relative;
    margin-bottom: 20px;
}
.address-field-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 14px;
    color: #777;
    pointer-events: none;
    transition: all 0.2s ease-out;
    background-color: white;
    padding: 0 4px;
    transform-origin: left top;
}
/* Float the label when input is focused or has content */
.address-input:focus + label,
.address-input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: var(--flip-blue);
}
/* Special handling for select element for state */
.address-input.select-state:focus + label,
.address-input.select-state:valid + label {
    top: -10px;
    font-size: 12px;
    color: var(--flip-blue);
}

/* Custom spinner for payment processing */
.payment-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Similar Product Card Style */
.similar-product-card {
    width: 140px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: box-shadow 0.2s;
}
.similar-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Styles for new image gallery in product detail */
.thumbnail-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.thumbnail-item.active {
    border-color: var(--flip-blue);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.detail-image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}
.detail-image-dot.active {
    background-color: var(--flip-blue);
}

/* Navigation Sidebar */
#nav-sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

/* Skeleton Loader */
.skeleton-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.skeleton-img {
    height: 140px;
    background-color: #e2e8f0;
}
.skeleton-text {
    height: 1rem;
    margin-top: 0.5rem;
    background-color: #e2e8f0;
    border-radius: 4px;
}
@keyframes pulse {
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Variant Button Styles */
.variant-btn {
    border: 1px solid #d1d5db;
    color: #374151;
    transition: all 0.2s;
}
.variant-btn.selected {
    border-color: var(--flip-blue);
    color: var(--flip-blue);
    background-color: #eff6ff;
    font-weight: 600;
}
.variant-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Flying cart animation */
.fly-to-cart {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    transition: all 0.7s cubic-bezier(0.5, 0, 1, 0.5);
    object-fit: contain;
}

/* Filter Sidebar */
#filter-sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}