/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Top Bar */
.top-bar {
    font-size: 14px;
}

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

.navbar-brand h3 {
    color: var(--primary-color);
    margin: 0;
}

/* Search Form */
.search-form .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form .form-control {
    border: none;
    padding: 12px 20px;
}

.search-form .btn {
    border: none;
    padding: 12px 30px;
}

/* Product Card */
.product-card {
    transition: all 0.3s ease;
    height: 100%;
}

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

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

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

.product-card .stretched-link::after {
    z-index: 0;
}

.product-card button, .product-card a:not(.stretched-link) {
    position: relative;
    z-index: 1;
}

/* Category Card */
.category-card .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.category-card i {
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
}

/* Hero Slider */
.hero-slider .carousel-item {
    min-height: 400px;
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

/* Cart Badge */
.badge {
    font-size: 12px;
}

/* Footer */
.footer {
    background: #212529 !important;
    color: #adb5bd;
}

.footer h5, .footer h6 {
    color: white;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer .social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.footer .social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    background: #000 !important;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-primary:hover {
    background: #0a58ca;
}

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Product Detail */
.main-image {
    background: #f8f9fa;
}

.thumbnail-image {
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Checkout Steps */
.checkout-steps {
    position: relative;
    padding: 20px 0;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #dee2e6;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step-label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

/* Rating Stars */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

/* Toast Notifications */
.toast {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 300px;
    }

    .hero-slider .carousel-caption {
        display: block !important;
        bottom: 20px;
        transform: none;
        padding: 10px;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.9rem;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilities */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.text-decoration-none:hover {
    text-decoration: none !important;
}

/* Badge Styles */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
