/**
 * Sri Naari Collections - Main Stylesheet
 * Gold/Black/White theme for jewelry e-commerce
 */

/* ==================== Variables ==================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --gold-color: #d4af37;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* ==================== Global Styles ==================== */
body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.top-bar {
    font-size: 14px;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

/* ==================== Section Titles ==================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ==================== Categories ==================== */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-image {
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

/* ==================== Products ==================== */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

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

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

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.badge-featured,
.badge-low-stock,
.badge-out-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.badge-low-stock {
    background: var(--warning-color);
}

.badge-out-stock {
    background: var(--danger-color);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

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

.product-title a {
    color: var(--dark-color);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

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

/* ==================== Feature Cards ==================== */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    height: 100%;
}

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

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==================== Testimonials ==================== */
.testimonial-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stars {
    color: var(--warning-color);
}

/* ==================== Newsletter ==================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 8px 0 0 8px;
    height: 50px;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
    height: 50px;
}

/* ==================== Footer ==================== */
.footer {
    margin-top: 80px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 20px;
}

/* ==================== Product Listing ==================== */
.filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-check {
    margin-bottom: 10px;
}

.products-toolbar {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ==================== Cart ==================== */
.cart-table td {
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==================== Buttons ==================== */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== Pagination ==================== */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #e9ecef;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .category-card {
        height: 200px;
    }

    .product-actions {
        transform: translateY(0);
    }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animate__animated {
    opacity: 1;
}

/* ==================== Utilities ==================== */
.text-gold {
    color: var(--gold-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
