:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #0ea5e9;
    --text-color: #0f172a;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --danger-color: #ef4444;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8f9fa;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.breadcrumb {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #475569;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.shop-sort-select {
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 12px;
    padding: 10px 40px 10px 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
    font-weight: 600;
    color: #0f172a;
}

.shop-sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Utilities */
.object-cover {
    object-fit: cover;
}

.hover-white:hover {
    color: #fff !important;
}

/* Card Improvements */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Hero Section */
.hero-section {
    background: var(--bg-light);
    padding: 80px 0;
}

/* Product Cards */
.product-card-img {
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .product-card-img {
        height: 200px;
    }
}

/* User Custom Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    border: none;
    /* Added based on previous file content to be safe, though user didn't explicitly say it, it is safer to keep it clean */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.badge-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.badge-hot {
    background: #e74c3c;
}

.badge-sale {
    background: #27ae60;
}

.image-container {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    height: 350px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .image-container img {
    transform: scale(1.1);
}

.action-buttons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) translateX(-100px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .action-buttons {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.action-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* Fix for dark text in dark mode if applicable */
.product-title a:hover {
    color: var(--primary-color);
}

.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* Overlay Effect */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .image-container::after {
    opacity: 1;
}

/* Rating vs Color Transition Container */
.meta-swap-container {
    position: relative;
    height: 25px;
    /* Fixed height for swap */
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .rating {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.stars {
    color: #f39c12;
    font-size: 14px;
}

.review-count {
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}

.color-options {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .color-options {
    opacity: 1;
    transform: translateY(0);
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover {
    transform: scale(1.15);
    border-color: #333;
}

.color-brown {
    background: #8b6f47;
}

.color-black {
    background: #000;
}

.color-blue {
    background: #5dade2;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

/* Quick View Modal & Gallery */
.quick-view-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    overflow: hidden;
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.main-image-container:hover img {
    opacity: 1;
}

.thumbnails-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    flex-grow: 1;
}

.thumbnail-slider::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

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

.slider-arrow {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
}

/* Collection Cards */
.collection-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.collection-card .collection-img img {
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-img img {
    transform: scale(1.1);
}

.collection-overlay {
    background: rgba(0, 0, 0, 0.55);
    transition: all 0.3s ease;
}

.collection-card:hover .collection-overlay {
    background: rgba(0, 0, 0, 0.65);
}

.collection-content {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-content {
    transform: translateY(0);
}

/* Badge NEW style */
.badge-new {
    background: var(--primary-color);
}

/* Badge Out of Stock */
.badge-stock {
    background: #6c757d;
}

/* Action button indigo hover */
.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Current price with primary color */
.current-price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}