@charset "UTF-8";

/*==============================
    Root Variables
==============================*/
:root {
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

/*==============================
    Base Styles
==============================*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: #f5f5f5;
}

/*==============================
    Navbar
==============================*/
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.user-dropdown {
    display: flex;
    align-items: center;
}

.user-dropdown img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

/*==============================
    Buttons
==============================*/
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    margin-left: 10px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

.btn-gradient-primary {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(to right, #00c6fb, #005bea);
    transform: translateY(-1px);
}

.btn-hero {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*==============================
    Hero Section
==============================*/
.hero-section {
    background: linear-gradient(rgba(78, 115, 223, 0.8), rgba(78, 115, 223, 0.9)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/*==============================
    Category Section
==============================*/
.category-section {
    padding: 50px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.category-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-card-body {
    padding: 20px;
    text-align: center;
}

.category-card-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.category-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: inline-block;
    white-space: normal;
    flex: 0 0 220px;
}

/*==============================
    Product Section
==============================*/
.product-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.products-container {
    padding: 30px 0;
}

.page-header {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-body {
    padding: 15px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 0.9rem;
    color: var(--secondary);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 10px;
}

.product-footer {
    padding: 0 15px 15px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--primary);
    border: none;
    padding: 8px;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #2e59d9;
}

/* List View */
.list-view .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.list-view .product-img-container {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.list-view .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-view .product-footer {
    width: 200px;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Badges and Actions */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-sale {
    background-color: var(--danger);
    color: white;
}

.badge-new {
    background-color: var(--success);
    color: white;
}

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: var(--primary);
    color: white;
}

.wishlist-btn:hover {
    background-color: var(--danger);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/*==============================
    Product Detail Page
==============================*/
.product-detail-container {
    padding: 30px 0;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary);
}

.product-images {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: var(--primary);
}

/*==============================
    Product Information
==============================*/
.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 1.2rem;
    color: var(--secondary);
    text-decoration: line-through;
    margin-left: 15px;
}

.discount-badge {
    background-color: var(--danger);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 15px;
}

.product-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.key-features {
    margin-bottom: 25px;
}

.key-features h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

.key-features ul {
    padding-left: 20px;
}

.key-features li {
    margin-bottom: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quantity-selector label {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-weight: 500;
}

/*==============================
    Enhanced Product Actions
==============================*/
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-cart {
    flex: 1;
    background-color: var(--primary);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-cart:hover {
    background-color: #2e59d9;
}

.btn-buy {
    flex: 1;
    background-color: var(--success);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #13855c;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background-color: var(--danger);
    color: white;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--secondary);
}

.meta-item i {
    margin-right: 8px;
    color: var(--primary);
}

/*==============================
    Product Tabs & Reviews
==============================*/
.product-tabs {
    margin-top: 40px;
}

.nav-tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
}

.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
}

.tab-content {
    padding: 20px 0;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #e9ecef;
}

.spec-table td {
    padding: 12px 0;
}

.spec-table td:first-child {
    font-weight: 500;
    width: 30%;
}

.review-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0;
}

.review-date {
    font-size: 0.85rem;
    color: var(--secondary);
}

.review-rating {
    color: var(--warning);
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.review-actions button {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.review-actions button:hover {
    color: var(--primary);
}

.review-actions i {
    margin-right: 5px;
}

/*==============================
    Related Products
==============================*/
.related-products {
    margin-top: 50px;
}

.related-product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-product-body {
    padding: 15px;
}

.related-product-title {
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-product-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

/*==============================
    Modal Styles
==============================*/
.modal-header {
    background-color: var(--primary);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

.nav-tabs .nav-link {
    color: var(--dark);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/*==============================
    Footer
==============================*/
footer, .footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-col h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/*==============================
    Responsive
==============================*/
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-toggle {
        margin-top: 10px;
    }

    .list-view .product-card {
        flex-direction: column;
    }

    .list-view .product-img-container,
    .list-view .product-footer {
        width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-cart, .btn-buy {
        width: 100%;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 40px;
    }
}