:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --success: #10b981;
}

.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
}

.navbar-brand span {
    color: var(--accent);
}

.hero-section {
    background: linear-gradient(135deg, rgba(37,99,235,0.9) 0%, rgba(30,64,175,0.9) 100%), 
                url('https://source.unsplash.com/random/1600x900/?shopping,ecommerce');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    transform: skewY(-2deg);
    z-index: 1;
}

.hero-title {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
}

.search-box .form-control {
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    border: none;
    font-size: 1.1rem;
}

.search-box .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background-color: var(--accent);
    border: none;
    font-weight: 500;
}

.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: white;
}

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

.product-img {
    height: 220px;
    object-fit: contain;
    padding: 20px;
    background: #f8fafc;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
}

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

.product-old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 5px;
}

.btn-cart {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: var(--secondary);
    color: white;
}

.category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-img {
    height: 180px;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.category-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-view {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background: white;
    color: var(--primary);
}

.deal-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    margin: 50px 0;
}

.deal-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.deal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.deal-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.deal-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.deal-old-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.countdown {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.countdown-item {
    background: var(--dark);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.countdown-number {
    font-weight: 700;
    font-size: 1.2rem;
}

.countdown-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-deal {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
}

.btn-deal:hover {
    background: var(--secondary);
    color: white;
}

.testimonial-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    margin: 50px 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid white;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.author-title {
    font-size: 0.8rem;
    opacity: 0.8;
}

.rating {
    color: var(--accent);
    margin-bottom: 10px;
}

.newsletter-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    border-radius: 15px;
    margin: 50px 0;
}

.newsletter-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-subtitle {
    margin-bottom: 30px;
    opacity: 0.8;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    border-radius: 50px 0 0 50px;
    padding: 15px 20px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.newsletter-btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.features-section {
    margin: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-text {
    opacity: 0.8;
}

.brands-section {
    margin: 80px 0;
}

.brand-img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.brand-img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
}



body {
    background-color: #f8f9fa;
}
.auth-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.auth-header {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    text-align: center;
}

.auth-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-header {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    text-align: center;
}

.auth-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-header {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    text-align: center;
}

.error-section {
    background-color: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.error-content {
    text-align: center;
    padding: 40px 0;
}
.error-icon {
    font-size: 8rem;
    color: #dc3545;
    margin-bottom: 20px;
}
.error-illustration {
    max-width: 400px;
    margin: 0 auto 30px;
    display: block;
}

.product-filter {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-img {
    height: 200px;
    object-fit: contain;
    padding: 20px;
}
.rating {
    color: #ffc107;
}
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.category-card {
    transition: transform 0.3s;
    margin-bottom: 30px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.category-card:hover {
    transform: translateY(-10px);
}
.category-img {
    height: 200px;
    object-fit: cover;
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
}
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.deal-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://source.unsplash.com/random/1200x400/?sale');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}
.deal-card {
    transition: all 0.3s;
    margin-bottom: 30px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.deal-img {
    height: 200px;
    object-fit: contain;
    padding: 20px;
    background-color: #f8f9fa;
}
.deal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}
.countdown {
    background-color: #343a40;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}
.tab-content {
    padding: 20px 0;
}
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://source.unsplash.com/random/1200x600/?ecommerce,team');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}
.mission-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}
.mission-card:hover {
    transform: translateY(-10px);
}
.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0d6efd;
}
.team-member {
    text-align: center;
    margin-bottom: 30px;
}
.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.timeline {
    position: relative;
    padding-left: 50px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0d6efd;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid white;
}
.stats-item {
    text-align: center;
    padding: 20px;
}
.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: #0d6efd;
}


.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://source.unsplash.com/random/1200x600/?contact,help');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}
.contact-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
}
.contact-card:hover {
    transform: translateY(-5px);
}
.contact-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 20px;
}
.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.faq-header button {
    font-weight: 600;
}
    
.cart-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}
.quantity-input {
    width: 60px;
    text-align: center;
}
.summary-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.promo-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.promo-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.empty-cart {
    text-align: center;
    padding: 60px 0;
}
.empty-cart-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}
.saved-for-later {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

/* Deal Section Styles */
.deal-section {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.deal-container {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.deal-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.deal-title {
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deal-subtitle {
    opacity: 0.9;
}

.current-price {
    color: #fff;
    font-weight: 800;
}

.original-price {
    opacity: 0.7;
}

.discount-badge {
    display: inline-block;
    font-weight: 600;
}

.countdown-box {
    min-width: 70px;
    background: rgba(255,255,255,0.9);
}

.countdown-number {
    line-height: 1;
}

.countdown-label {
    opacity: 0.8;
}

.deal-image-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.deal-image-container img {
    transform: rotateY(-5deg);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.deal-image-container:hover img {
    transform: rotateY(0deg);
}

.deal-sticker {
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-deal {
    background: white;
    color: #4e54c8;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-deal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .deal-title {
        font-size: 2rem;
    }
    .current-price {
        font-size: 2.5rem;
    }
}

/* List View Styles */
.product-grid.list-view {
    display: block;
}

.product-grid.list-view .col-md-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.product-grid.list-view .product-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.product-grid.list-view .card-body {
    flex: 1;
    padding: 1.5rem;
}

.product-grid.list-view .card-footer {
    border-top: 1px solid rgba(0,0,0,.125) !important;
    width: 100%;
}

/* Responsive adjustments for list view */
@media (max-width: 767.98px) {
    .product-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .product-grid.list-view .product-img {
        width: 100%;
        height: auto;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay .card-title {
    color: white;
    margin-bottom: 10px;
}

/* Product card styles */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    height: 200px;
    object-fit: cover;
}

/* Product Image Gallery */
.product-thumbnails {
    max-height: 500px;
    overflow-y: auto;
}

.product-thumbnails::-webkit-scrollbar {
    width: 5px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

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

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    border: 2px solid var(--bs-primary);
}

.product-image-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rating Stars */
.rating-input {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 1.5rem;
    padding: 0 3px;
    cursor: pointer;
}

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

/* Variations */
.variation-select {
    min-width: 60px;
}

/* Quantity Input */
.quantity-input {
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tabs */
.nav-tabs .nav-link {
    font-weight: 500;
}

/* Reviews */
.review-item {
    padding-bottom: 1rem;
}

.review-helpful {
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .product-thumbnails {
        display: flex;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        margin-bottom: 1rem;
    }
    
    .thumbnail-item {
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    
    .product-image-container {
        min-height: 300px;
    }
}