/**
 * Kachaa Designs - Custom CSS
 * Premium Ethnic Fashion Ecommerce Theme
 */

/* ==================== Variables ==================== */
:root {
    --primary-color: #e91e63;
    --primary-light: #f48fb1;
    --primary-dark: #c2185b;
    --secondary-color: #fce4ec;
    --accent-color: #ff9800;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Top Bar ==================== */
.top-bar {
    font-size: 13px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.top-bar a {
    color: var(--text-dark);
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* ==================== Header ==================== */
.main-header {
    padding: 15px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.btn-icon {
    color: var(--text-dark);
    font-size: 20px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary-color);
}

.bg-pink {
    background-color: var(--primary-color) !important;
}

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* ==================== Product Card ==================== */
.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.badge-new {
    background-color: var(--accent-color);
}

.badge-sale {
    background-color: var(--primary-color);
}

.badge-trending {
    background-color: #4caf50;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: #4caf50;
    font-weight: 600;
}

/* ==================== Category Card ==================== */
.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: rgba(0,0,0,0.2);
}

.category-name {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==================== Banner ==================== */
.banner-section {
    padding: 40px 0;
}

.banner-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

/* ==================== Section Title ==================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

/* ==================== Footer ==================== */
.footer {
    background-color: #1a1a1a;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* ==================== WhatsApp Button ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb-section {
    background-color: var(--secondary-color);
    padding: 40px 0;
}

.breadcrumb-item a {
    color: var(--text-dark);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* ==================== Product Details ==================== */
.product-gallery {
    margin-bottom: 20px;
}

.main-image {
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 15px;
    background: #f8f8f8;
    text-align: center;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    background: #f8f8f8;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.product-description {
    margin-bottom: 20px;
    color: var(--text-light);
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

/* ==================== Cart ==================== */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.cart-item-remove {
    color: #f44336;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #d32f2f;
}

.cart-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==================== Form Styles ==================== */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .main-image img {
        height: auto;
        max-height: none;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==================== Loading Spinner ==================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-pink {
    color: var(--primary-color);
}

/* ==================== Toast Notification ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* ==================== Admin Panel Styles ==================== */
.admin-sidebar {
    background-color: #1a1a1a;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 25px;
}

.admin-content {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.pink {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-icon.blue {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.stat-icon.green {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}
