/* Global Design System for Zishabd */
:root {
    --primary: hsl(174, 79%, 37%); /* Teal #14a89e */
    --primary-light: hsl(174, 79%, 47%);
    --primary-dark: hsl(174, 79%, 27%);
    --secondary: hsl(210, 20%, 98%);
    --accent: hsl(45, 100%, 50%); /* Amber accent */
    --dark: hsl(210, 24%, 16%); /* Sleek dark theme foundation */
    --light: hsl(0, 0%, 100%);
    --gray-light: hsl(210, 17%, 95%);
    --gray: hsl(210, 10%, 60%);
    --success: hsl(120, 50%, 45%);
    --danger: hsl(0, 75%, 50%);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--gray-light);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--light);
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(174, 79%, 37%) 0%, hsl(210, 30%, 20%) 100%);
    color: var(--light);
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Category Menu */
.category-menu {
    display: flex;
    gap: 15px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-chip {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.category-chip:hover, .category-chip.active {
    background: var(--primary);
    color: var(--light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-img-wrap {
    background: var(--gray-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--light);
}

/* Product Detail Page */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

@media(max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-img-wrap {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    height: 400px;
}

.detail-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.detail-desc {
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th, .cart-table td {
    padding: 20px;
    text-align: left;
}

.cart-table th {
    background: var(--gray-light);
    font-weight: 700;
}

.cart-table tr {
    border-bottom: 1px solid var(--gray-light);
}

.cart-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.cart-total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: var(--gray);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

/* Premium Select Element Styling */
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--light);
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314a89e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 168, 158, 0.1);
}

/* Mobile Responsive Optimizations */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .cart-total-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .cart-total-section div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .cart-total-section .btn {
        width: 100%;
    }
    .hero h1 {
        font-size: 28px !important;
    }
    .hero p {
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .nav-container {
        height: auto !important;
        padding: 15px 20px !important;
        flex-direction: column;
        gap: 12px;
    }
    .nav-menu {
        gap: 20px !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .category-menu {
        gap: 8px !important;
        margin: 20px 0 10px !important;
    }
    .category-chip {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.table-responsive .cart-table {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Quick Order Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--light);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}
@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}
.close-modal:hover {
    color: var(--danger);
}

