/*
 * Abayti E-Commerce Styles
 * Women's Clothing Store
 */

:root {
    --primary-color: #8B5A5A;
    --secondary-color: #D4A574;
    --dark-color: #2C2C2C;
    --light-color: #F8F5F2;
    --text-color: #333;
}

/* General */
body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Elements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(139, 90, 90, 0.25);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card .product-image {
    overflow: hidden;
}

.product-card .card-img-top {
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card:hover .product-actions {
    opacity: 1 !important;
}

/* Category Cards */
.category-card:hover .category-image img {
    transform: scale(1.05);
    border-color: var(--secondary-color) !important;
}

.category-image img {
    transition: all 0.3s;
}

/* Page Header */
.page-header {
    background: var(--light-color);
}

.page-header h1 {
    color: var(--dark-color);
    font-weight: 700;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Store Cards */
.store-card {
    transition: transform 0.3s;
}

.store-card:hover {
    transform: translateY(-5px);
}

/* Product Details */
.product-gallery .main-image {
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery .thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

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

.product-info .product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.product-info .product-price {
    font-size: 1.5rem;
}

.product-info .product-price .original-price {
    font-size: 1rem;
    color: #999;
}

/* Quantity Input */
.quantity-input {
    width: 120px;
}

.quantity-input .btn {
    background: var(--light-color);
    border: 1px solid #ddd;
}

/* Cart Page */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

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

/* Checkout */
.checkout-section {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-summary {
    background: var(--light-color);
    border-radius: 10px;
    padding: 25px;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
}

.footer-title {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider img {
        height: 300px !important;
    }

    .product-card .card-img-top {
        height: 200px !important;
    }

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

/* Product Image Container */
.product-card .product-image {
    background: #f8f8f8;
}

.product-card .card-img-top {
    object-fit: cover;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 90, 90, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
