/* assets/css/style.css - CaratLane Inspired Minimalist Theme */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --gold: #d4af37;
    --gold-light: #e6c84c;
    --gold-soft: #f8f4f0;
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --light: #ffffff;
    --light-soft: #faf8f6;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

.text-gold {
    color: var(--gold) !important;
}
.bg-gold {
    background-color: var(--gold) !important;
}
.bg-gold-soft {
    background-color: var(--gold-soft) !important;
}
.bg-light-soft {
    background-color: var(--light-soft) !important;
}
.border-gold {
    border-color: var(--gold) !important;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--light) !important;
    border-bottom: 1px solid var(--gray-light);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--gold);
    margin-right: 8px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.06);
}

.nav-link i {
    margin-right: 5px;
}

/* Cart Badge */
.badge.bg-danger {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    transform: translate(10%, -30%);
}

/* Search Bar */
.navbar .form-control {
    border-radius: 50px;
    border: 2px solid var(--gray-light);
    background: var(--light);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 200px;
}

.navbar .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.navbar .btn-outline-dark {
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: var(--light);
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    color: var(--dark);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.06);
    color: var(--gold);
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
    color: var(--gold);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--gray);
}

.hero-section .btn-dark {
    background: var(--dark);
    color: var(--light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-section .btn-dark:hover {
    background: var(--dark-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-section .btn-outline-dark:hover {
    background: var(--dark);
    color: var(--light);
    transform: translateY(-3px);
}

/* Badge */
.hero-section .badge.bg-gold-soft {
    background: var(--gold-soft) !important;
    color: var(--dark) !important;
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}

.product-card .card-footer {
    background: var(--light);
    border-top: 1px solid var(--gray-light);
    padding: 0.75rem 1.25rem;
}

.product-card .btn-dark {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.product-card .btn-outline-dark {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Price Styles */
.product-card .text-decoration-line-through {
    font-size: 0.85rem;
    color: var(--gray);
}

.product-card .text-gold {
    font-size: 1.1rem;
}

/* Rating Stars */
.product-card .text-warning {
    font-size: 0.85rem;
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--gray-light);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.category-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.category-card .text-muted {
    font-size: 0.9rem;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ==================== WHY CHOOSE US ==================== */
.feature-card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
    color: var(--dark);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--light) !important;
    color: var(--dark);
    border-top: 1px solid var(--gray-light);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

footer a {
    color: var(--gray) !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--gold) !important;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--gold-soft);
    transition: var(--transition);
    color: var(--dark);
}

footer .social-icons a:hover {
    background: var(--gold);
    color: var(--light) !important;
    transform: translateY(-3px);
}

/* ==================== BUTTONS ==================== */
.btn-dark {
    background: var(--dark);
    border: none;
    color: var(--light);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-dark:hover {
    background: var(--dark-soft);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    color: var(--light);
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ==================== CART PAGE ==================== */
.cart-item {
    transition: var(--transition);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item:hover {
    background: var(--light-soft);
}

.cart-item .qty-input {
    width: 60px;
    text-align: center;
}

/* ==================== CHECKOUT ==================== */
.checkout-summary {
    background: var(--light-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .navbar .form-control {
        width: 100% !important;
    }
    .product-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 40px 0;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* ==================== UTILITY ==================== */
.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-custom {
    border-radius: var(--radius);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* ==================== CATEGORIES PAGE EXTENSIONS ==================== */
.page-header {
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
}

.page-header h1 {
    color: var(--dark);
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--gold);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--gray);
}

.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background: var(--light);
    color: var(--dark);
}

.list-group-item:hover {
    background: var(--light-soft);
}

.list-group-item.active {
    background: var(--gold);
    border: none;
}

.list-group-item.active a {
    color: var(--light) !important;
}

.list-group-item a {
    display: block;
    color: var(--dark);
}

.list-group-item a:hover {
    color: var(--gold);
}

.list-group-item img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}

/* Discount Badge */
/* Make discount badge smaller */
.badge-discount {
    font-size: 0.6rem;      /* smaller text */
    padding: 0.15rem 0.5rem; /* less padding */
    border-radius: 20px;
    font-weight: 700;
    background: #d4af37;
    color: #1a1a1a;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}
}

/* Stock Status */
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status .text-success {
    color: var(--success) !important;
}

.stock-status .text-danger {
    color: var(--danger) !important;
}

/* ==================== RESPONSIVE FOR CATEGORIES ==================== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    .product-card .card-img-top {
        height: 180px !important;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1.5rem 0;
    }
    .page-header h1 {
        font-size: 1.25rem;
    }
}