/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #061661;
    --primary-dark: #060e5b;
    --secondary: #38b2ac;
    --accent: #ed8936;
    --dark: #2d3748;
    --light: #f7fafc;
    --gray: #e2e8f0;
    --text: #4a5568;
    --success: #48bb78;
    --danger: #f56565;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    gap: 10px;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.logo span {
    background-color: white;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.logo i {
    margin-right: 8px;
    background-color: white;
    color: var(--primary);
    padding: 6px;
    border-radius: 6px;
}

.search-bar {
    display: flex;
    flex: 0 1 600px;
    margin: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-bar select {
    background-color: white;
    border: none;
    padding: 8px 12px;
    border-right: 1px solid var(--gray);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #2c9c9c;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-action:hover {
    transform: translateY(-2px);
}

.header-action span:first-child {
    font-size: 12px;
    opacity: 0.9;
}

.header-action span:last-child {
    font-weight: 600;
    font-size: 14px;
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-bottom {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    padding: 30px 20px;
    background: linear-gradient(to right, #f8fafc, #edf2f7);
}

.hero-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #000;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide.active {
    display: block;
}

.hero-video-slide {
    background: transparent;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gray);
}

.section-title h2 {
    color: var(--dark);
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-image {
    height: 140px;
    background-color: #f8fafc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

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

.product-title {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    flex-grow: 1;
    line-height: 1.3;
}

.product-category {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.product-rating {
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    transition: all 0.3s;
    font-size: 13px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 100vw);
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray);
}

.cart-header h2 {
    color: var(--dark);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-items {
    flex-grow: 1;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quantity-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--gray);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

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

.cart-total {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid var(--gray);
    display: flex;
    justify-content: space-between;
    color: var(--dark);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 14px;
    color: #a0aec0;
}

/* Overlay for cart */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin: 15px 0 0 0;
    }
    
    .nav-links {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide > div {
        padding: 30px !important;
    }
    
    .slide h1 {
        font-size: 2rem !important;
    }
    
    .slide p {
        font-size: 1.1rem !important;
    }
    
    .slide .btn {
        width: 150px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 5px 10px;
    }
    
    .header-top {
        gap: 10px;
    }
    
    .search-bar {
        flex: 1 1 100%;
        order: 3;
        margin: 10px 0 0 0;
    }
    
    .search-bar select {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-bar input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .search-bar button {
        padding: 0 12px;
    }
    
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
        padding: 16px;
    }
    
    .cart-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .cart-header h2 {
        font-size: 18px;
    }
    
    .cart-item {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .cart-item-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .cart-item-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .cart-total {
        font-size: 16px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    #checkout-btn {
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 14px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .product-card {
        padding: 8px;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 8px;
    }
    
    .product-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .product-rating {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-action span:first-child {
        font-size: 10px;
    }
    
    .header-action span:last-child {
        font-size: 12px;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .slide > div {
        padding: 25px !important;
    }
    
    .slide h1 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .slide p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }
    
    .slide .btn {
        width: 130px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .search-bar input {
        font-size: 14px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .cart-sidebar {
        padding: 12px;
    }
    
    .cart-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .cart-header h2 {
        font-size: 16px;
    }
    
    .cart-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        margin-right: 8px;
    }
    
    .cart-item-title {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .cart-item-price {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .cart-item-actions {
        gap: 6px;
    }
    
    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .cart-total {
        font-size: 15px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    #checkout-btn {
        padding: 10px !important;
        font-size: 13px !important;
        margin-top: 12px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 6px;
    }
    
    .product-image {
        height: 100px;
        margin-bottom: 6px;
    }
    
    .product-title {
        font-size: 11px;
        margin-bottom: 3px;
        line-height: 1.2;
    }
    
    .product-category {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .product-rating {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .product-price {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .btn {
        padding: 5px 8px;
        font-size: 10px;
        gap: 3px;
    }
    
    .product-actions {
        gap: 6px;
    }
    
    .nav-links {
        font-size: 12px;
        gap: 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .hero-slider {
        height: 150px;
    }
    
    .slide > div {
        padding: 15px !important;
    }
    
    .slide h1 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .slide p {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .slide .btn {
        width: 110px !important;
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
    
    .section-title h2 {
        font-size: 18px;
    }
    
    .products-section {
        padding: 0 10px;
    }
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    animation: slideInUp 0.3s ease-out;
}

@media (max-width: 576px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}
/* Products View Modal */
.categories-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.products-view-modal {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 65vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.products-view-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-view-header h2 {
    margin: 0 0 3px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-view-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.85rem;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-modal-btn:hover {
    transform: scale(1.1);
}

.products-view-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.products-view-main {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.products-view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.product-view-card {
    display: flex;
    gap: 8px;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.3s ease;
}

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

.product-view-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.product-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-view-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-view-details h3 {
    margin: 0;
    font-size: 0.75rem;
    color: var(--dark);
    line-height: 1.2;
}

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

.product-category {
    color: var(--text);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-add-to-cart-view {
    background: linear-gradient(135deg, var(--accent) 0%, #dd6b20 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-add-to-cart-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

.products-view-sidebar {
    width: 220px;
    background-color: var(--light);
    padding: 10px;
    overflow-y: auto;
    border-left: 1px solid var(--gray);
}

.recommended-section {
    margin-bottom: 20px;
}

.recommended-section h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommended-section h3 i {
    color: var(--accent);
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommended-item {
    display: flex;
    gap: 8px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recommended-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.recommended-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.recommended-details {
    flex: 1;
}

.recommended-details h4 {
    margin: 0 0 3px 0;
    font-size: 0.75rem;
    color: var(--dark);
    line-height: 1.2;
}

.product-rating-small {
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 3px;
}

.recommended-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.categories-quick-links {
    margin-top: 20px;
}

.categories-quick-links h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    padding: 12px 15px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover,
.category-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-view-sidebar {
        width: 280px;
    }
    
    .product-view-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .products-view-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .products-view-header {
        padding: 15px 20px;
    }
    
    .products-view-header h2 {
        font-size: 1.3rem;
    }
    
    .products-view-container {
        flex-direction: column;
    }
    
    .products-view-main {
        padding: 15px;
    }
    
    .products-view-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray);
        padding: 15px;
    }
    
    .products-view-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-view-card {
        flex-direction: column;
    }
    
    .product-view-image {
        width: 100%;
        height: 150px;
    }
    
    .product-view-details h3 {
        font-size: 0.95rem;
    }
    
    .product-view-price {
        font-size: 1.1rem;
    }
}
/* Product Details Modal */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 2000;
}

.modal{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 92vw);
  max-height: 86vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: none;
  z-index: 2001;
  overflow: hidden;
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray);
}

.modal-close{
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

.modal-body{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  padding: 16px 18px 18px;
  overflow: auto;
}

.modal-main{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.modal-image-wrap{
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background: #f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border: 1px solid var(--gray);
}

.modal-image-wrap img{
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.modal-meta{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 10px;
}

.modal-tag{
  background: rgba(56,178,172,0.12);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.modal-rating{
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.modal-price{
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-description{
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--gray);
}

.modal-description p:first-child{
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-description p:last-child{
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.modal-sidebar{
  border-left: 1px solid var(--gray);
  padding-left: 16px;
}

.modal-filter-buttons{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-filter-buttons button{
  border: 1px solid var(--gray);
  background: white;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: var(--dark);
}

.modal-filter-buttons button.active{
  border-color: var(--secondary);
  color: var(--secondary);
}

.modal-recommended-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.modal-rec-item{
  display:flex;
  gap: 10px;
  align-items:center;
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.modal-rec-item img{
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.modal-rec-item .name{
  font-size: 12px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.modal-rec-item .price{
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 860px){
  .modal-body{ grid-template-columns: 1fr; }
  .modal-sidebar{ border-left: none; padding-left: 0; border-top: 1px solid var(--gray); padding-top: 12px; }
}

@media (max-width: 576px) {
    .modal {
        width: 94vw;
        max-height: 88vh;
        border-radius: 10px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
  
    .modal-header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 2;
    }
  
    .modal-header h3 {
        font-size: 16px;
    }
  
    .modal-body {
        padding: 12px 15px;
        max-height: calc(88vh - 54px);
        overflow-y: auto;
    }
  
    .modal-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
  
    .modal-image-wrap {
        width: 100%;
        height: 220px;
        margin: 0 auto;
    }
  
    .modal-image-wrap img {
        width: 100%;
        height: 220px;
    }
  
    .modal-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--gray);
        padding-top: 12px;
    }
  
    .modal-price {
        font-size: 18px;
    }
  
    .modal-description p {
        font-size: 14px;
    }
}

/* Checkout Modal */
.checkout-section {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
    display: none;
    padding: 0 0 24px 0;
    overflow-y: auto;
    z-index: 1200;
}

.checkout-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.back-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(-3px);
}

.checkout-header h2 {
  margin: 0;
    font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

/* Track Orders */
.track-section {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
    display: none;
    overflow-y: auto;
    z-index: 1200;
}

.track-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.track-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.track-card {
    background: white;
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.track-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.track-id {
    font-weight: 700;
    color: var(--dark);
}

.track-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.track-status.delivered { background: #e6fffa; color: #048679; }
.track-status.delivery { background: #fff7e6; color: #b7791f; }
.track-status.processing { background: #e2e8f0; color: #2d3748; }

.track-meta {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.track-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--dark);
    font-size: 0.95rem;
}

.track-items span {
    background: #f7fafc;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 6px 10px;
}

.track-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text);
    background: white;
    border: 1px solid var(--gray);
    border-radius: 10px;
}

@media (max-width: 576px) {
    .track-header {
        padding: 10px 14px;
    }
    .track-body {
        padding: 14px;
    }
    .track-card {
        padding: 12px 14px;
    }
}

.checkout-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.checkout-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 22, 97, 0.1);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid var(--gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option:hover {
  border-color: var(--primary);
  background-color: var(--light);
}

.payment-option input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-label {
  color: var(--primary);
  font-weight: 700;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
}

.payment-label i {
  font-size: 1.3rem;
}

.payment-details {
  margin-top: 20px;
}

.checkout-sidebar {
  background-color: var(--light);
  padding: 30px;
  border-left: 1px solid var(--gray);
}

.order-summary h3 {
  font-size: 1.4rem;
  margin: 0 0 20px 0;
  color: var(--dark);
}

.checkout-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: 10px;
}

.checkout-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-item-details {
  flex: 1;
}

.checkout-item-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.checkout-item-price {
  color: var(--text);
  font-size: 0.85rem;
}

.checkout-item-total {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.summary-totals {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 12px;
  border-top: 2px solid var(--gray);
  margin-top: 12px;
}

.btn-place-order {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-place-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

@media (max-width: 900px) {
  .checkout-body {
    grid-template-columns: 1fr;
  }
  
  .checkout-sidebar {
    border-left: none;
    border-top: 1px solid var(--gray);
  }
}

@media (max-width: 576px) {
  .checkout-section {
        padding-bottom: 12px;
  }
  
  .checkout-header {
        padding: 12px 16px;
    flex-wrap: wrap;
  }
  
  .back-btn {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
  
  .checkout-header h2 {
    font-size: 1.3rem;
  }
  
  .checkout-body {
        padding: 12px;
  }
  
  .checkout-main {
        padding: 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkout-sidebar {
        padding: 16px;
  }
}

/* Payment Method Branding */
.paypal-label i {
  color: #003087;
}

.mpesa-label i {
  color: #00A651;
}

.payment-option input[type="radio"]:checked ~ .paypal-label {
  color: #003087 !important;
}

.payment-option input[type="radio"]:checked ~ .mpesa-label {
  color: #00A651 !important;
}

.mpesa-instructions {
  display: flex;
  gap: 10px;
  padding: 15px;
  background-color: #e6f7ed;
  border-left: 4px solid #00A651;
  border-radius: 8px;
  margin-top: 15px;
}

.mpesa-instructions i {
  color: #00A651;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mpesa-instructions p {
  margin: 0;
  color: var(--dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

