/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&family=Public+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Professional Catalog Design */
:root {
    --primary-color: #231F20;
    --secondary-color: #47B549;
    --text-primary: #231F20;
    --text-secondary: #86868B;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-tertiary: #FAFAFA;
    --border-color: #E5E5E7;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --font-primary: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    background-color: var(--background-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 20px rgba(71, 181, 73, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(71, 181, 73, 0.1);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--background-secondary);
    border-radius: var(--radius-large);
    padding: 8px 16px;
    border: none;
    min-width: 200px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    margin-left: 8px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.search-dropdown-item:hover {
    background: var(--background-secondary);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-item-image-container {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-small);
    background: var(--background-secondary);
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-description {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-dropdown-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-icon {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-small);
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.cart-icon:hover {
    background: var(--border-color);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Main Content */
.main {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

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

/* Modern Hero Section */
.hero-modern {
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    background: linear-gradient(135deg, 
        rgba(35, 31, 32, 0.95) 0%, 
        rgba(71, 181, 73, 0.1) 50%, 
        rgba(245, 245, 247, 0.95) 100%);
    background-attachment: fixed;
    position: relative;
    width: 100%;
    padding: 100px 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(71,181,73,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #3a9f3c);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(71, 181, 73, 0.3);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), #3a9f3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: black;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 181, 73, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #3a9f3c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(71, 181, 73, 0.3);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
    border: 2px solid var(--border-color);
}

.floating-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: -20%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    top: 60%;
    right: -20%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Company Banner */
.company-banner {
    background: var(--background-secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-section .product-grid {
    margin-top: 0;
    padding-top: 0;
}

/* Products Section Spacing */
.products-section {
    padding: 4rem 0;
}

.products-section .container {
    max-width: 1400px;
}

.product-card {
    background: var(--background-primary);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-8px);
    border-color: var(--secondary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}

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

.product-image-bg {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-medium) var(--radius-medium) 0 0;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--background-secondary);
    transition: transform 0.3s ease;
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--background-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-size {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.quantity-type-selector {
    margin-bottom: 4px;
}

.quantity-and-cart-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.unit-selector {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--background-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.unit-selector:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(71, 181, 73, 0.1);
}

.add-to-cart-inline {
    flex: 1;
    margin-top: 0;
}

/* Inline Quantity Controls */
.quantity-control-inline {
    display: flex;
    align-items: center;
    background: var(--background-secondary);
    border-radius: 25px;
    padding: 2px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.quantity-control-inline:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(71, 181, 73, 0.2);
}

.qty-btn-inline {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.qty-btn-inline:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.qty-btn-inline:active {
    transform: scale(0.95);
}

.quantity-inline {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 4px;
    font-size: 14px;
}

.add-to-cart-btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    text-align: center;
    font-size: 0.875rem;
}

.quantity-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Hot Deals Section */
.hot-deals-section {
    background: linear-gradient(135deg, var(--background-secondary), #f0f8f0);
    position: relative;
}

.hot-deals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><path d="M0 0l60 60M60 0L0 60" stroke="rgba(71,181,73,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hot-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.deal-card {
    background: white;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.deal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 10px;
    z-index: 3;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.deal-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--background-secondary);
    position: relative;
    transition: transform 0.3s ease;
}

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

.deal-content {
    padding: 1.5rem;
}

.deal-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.deal-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.deal-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.deal-actions {
    display: flex;
    gap: 10px;
}

/* Categories Icon Grid */
.categories-section {
    position: relative;
}

.categories-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.category-icon-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    justify-content: center;
}

.category-icon-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(71, 181, 73, 0.15);
    background: linear-gradient(135deg, white, rgba(71, 181, 73, 0.05));
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    background: var(--background-secondary);
    border-radius: var(--radius-medium);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-medium);
}

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

.category-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    line-height: 1.2;
    text-align: center;
    display: block;
}

.category-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), #3a9f3c);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: calc(var(--radius-medium) - 2px);
}

.category-icon-card:hover .category-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.category-hover-info h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.category-hover-info p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.categories-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-color);
}

.categories-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.link-primary {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Legacy Categories Styles (for other pages) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--background-primary);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.category-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.category-info {
    padding: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--background-primary);
    box-shadow: var(--shadow-heavy);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-item-quantities {
    margin: 8px 0;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quantity-row:last-child {
    margin-bottom: 0;
}

.qty-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.qty-btn.minus:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.qty-badge {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--background-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-small);
    border: 1px solid var(--border-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}



.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--background-primary);
    border-radius: var(--radius-large);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Forms */
.modal form {
    margin: 0;
    padding: 24px;
}

.modal .form-group {
    margin-bottom: 24px;
}

.modal .form-group:last-of-type {
    margin-bottom: 0;
}

.modal .form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
}

.modal .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--primary-color);
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal .form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(71, 181, 73, 0.1);
}

.modal .form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    flex-direction: row;
}

.modal .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.modal .checkbox-label span:not(.checkmark) {
    color: var(--primary-color);
    font-size: 14px;
}

.modal .form-actions {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 24px -24px -24px;
    background: var(--background-secondary);
    border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-small);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px 24px;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.product-modal-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: var(--radius-medium);
    object-fit: cover;
    background: var(--background-secondary);
    justify-self: center;
}

.product-modal-info {
    display: grid;
    gap: 16px;
}

.product-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.product-modal-sku {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-small);
    display: inline-block;
    width: fit-content;
}

.product-modal-category {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.product-modal-description {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.product-modal-pricing {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-medium);
}

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

.price-label {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.product-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    width: 100%;
}

.modal-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.modal-tab:hover {
    color: var(--text-primary);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab-content {
    display: none;
    width: 100%;
}

.modal-tab-content.active {
    display: block;
}

/* Quantity Selection */
.quantity-selection {
    background: var(--background-secondary);
    padding: 16px;
    border-radius: var(--radius-medium);
    margin: 0;
}

.quantity-selection h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.quantity-options {
    display: grid;
    gap: 12px;
}

.quantity-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--background-primary);
    border-radius: var(--radius-medium);
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.quantity-option:hover {
    border-color: var(--secondary-color);
}

.quantity-option-info {
    flex: 1;
}

.quantity-option-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 16px;
}

.quantity-option-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--background-secondary);
    border-radius: var(--radius-small);
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.quantity-option-input {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    cursor: default;
}

.quantity-option-input:focus {
    outline: none;
}

.full-width {
    width: 100%;
}

/* Reviews */
.reviews-section {
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.no-reviews {
    text-align: center;
    color: var(--text-secondary);
    margin: 20px 0;
    font-style: italic;
}

.write-review-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.write-review-btn {
    width: 100%;
    margin-bottom: 16px;
}

.add-review-form {
    background: var(--background-secondary);
    padding: 20px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
}

.add-review-form h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

.review-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 500;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 14px;
}

.star.empty {
    color: #ddd;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.5;
}

.review-date {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

/* Add Review Form */
.add-review-form {
    background: var(--background-secondary);
    padding: 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
}

.add-review-form h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-family: inherit;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.rating-star {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: color 0.2s ease;
}

.rating-star:hover,
.rating-star.selected {
    color: #ffd700;
}

/* Modal Layout */
.product-modal-content {
    display: flex;
    flex-direction: column;
}

/* Product Modal Specific Sizing */
.modal.product-modal .modal-content {
    max-width: 800px;
    width: 95%;
}

.product-modal-header {
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.product-modal-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-modal-image-container {
    display: flex;
    justify-content: center;
}

.product-modal-details h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Product Details */
.product-details-grid {
    display: grid;
    gap: 16px;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
}

/* Success Message Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .product-modal-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
    padding: 20px 0;
}

.category-section:not(:last-child) {
    border-bottom: 1px solid rgba(71, 181, 73, 0.15);
    margin-bottom: 30px;
}

.category-section:last-child {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.category-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.category-count {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Search and Filters Section */
.filters-section {
    background: linear-gradient(135deg, var(--background-secondary), #f0f4f8);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-and-filters {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 500px;
}

.search-input-container {
    position: relative;
    display: flex;
    background: white;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(71, 181, 73, 0.1);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--primary-color);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 14px 20px;
    background: var(--secondary-color);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

/* Searchable Category Filter */
.category-filter-container {
    min-width: 250px;
    position: relative;
}

.searchable-select {
    position: relative;
    width: 100%;
}

.select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: white;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-header:hover {
    border-color: var(--secondary-color);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
    box-shadow: 0 8px 25px rgba(71, 181, 73, 0.2);
}

.select-dropdown.show {
    display: block;
}

.dropdown-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-secondary);
    outline: none;
    background: var(--background-secondary);
}

.dropdown-options {
    max-height: 240px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: var(--background-secondary);
    color: var(--secondary-color);
}

.dropdown-option.selected {
    background: var(--secondary-color);
    color: white;
}

.dropdown-option.selected:hover {
    background: var(--primary-color);
}

/* Results Info */
.results-info {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.active-filter {
    display: block;
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 4px;
}

.results-count {
    font-weight: 600;
    color: var(--secondary-color);
}

.total-count {
    font-weight: 600;
}

/* Alphabetical Categories */
.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3rem;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-large);
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.alphabet-link:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.letter-section {
    margin-bottom: 4rem;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.letter-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.letter-count {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Responsiveness for Search and Filters */
@media (max-width: 768px) {
    .search-and-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-info {
        text-align: center;
    }
    
    .search-container {
        max-width: none;
    }
    
    .category-filter-container {
        min-width: auto;
    }
    
    .alphabet-nav {
        gap: 4px;
        padding: 15px;
    }
    
    .alphabet-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .letter-title {
        font-size: 2rem;
    }
}

/* Cart Page Styles */
.cart-section {
    padding: 40px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: var(--radius-medium);
    padding: 30px;
    box-shadow: var(--shadow-medium);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-small);
    overflow: hidden;
    background: var(--background-secondary);
}

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

.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.item-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.item-quantities {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.qty-badge {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.qty-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.item-actions {
    display: flex;
    gap: 10px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Quote Summary */
.quote-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card, .help-card {
    background: white;
    border-radius: var(--radius-medium);
    padding: 30px;
    box-shadow: var(--shadow-medium);
}

.summary-card h3, .help-card h4 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
}

.summary-note {
    background: var(--background-secondary);
    padding: 15px;
    border-radius: var(--radius-small);
    margin: 20px 0;
}

.summary-note p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.quote-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.help-card {
    background: linear-gradient(135deg, var(--secondary-color), #3a9f3c);
    color: white;
}

.help-card h4, .help-card p {
    color: white;
}

.help-card p {
    margin-bottom: 20px;
}

/* Quote Modal */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }
    
    .item-actions {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-tabs {
        grid-column: 1;
    }
    
    .modal-tab-content {
        grid-column: 1;
    }
    
    .modern-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-chips {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .search-bar {
        min-width: 150px;
    }
    
    /* Modern Hero Mobile */
    .hero-modern {
        min-height: 70vh;
    }
    
    .hero-background {
        padding: 60px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .hero-image-container {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .floating-card.card-1 {
        top: 5%;
        right: -5%;
    }
    
    .floating-card.card-2 {
        bottom: 10%;
        left: -15%;
    }
    
    .floating-card.card-3 {
        top: 70%;
        right: -15%;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-subtitle {
        font-size: 0.7rem;
    }
    
    /* Company Banner Mobile */
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* Hot Deals Mobile */
    .hot-deals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .deal-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Categories Mobile */
    .categories-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .category-icon-card {
        padding: 1rem 0.5rem;
        min-height: 100px;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        width: 50px;
        height: 50px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .category-hover-info {
        padding: 0.75rem;
    }
    
    .category-hover-info h4 {
        font-size: 0.9rem;
    }
    
    .category-hover-info p {
        font-size: 0.75rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .categories-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .category-icon-card {
        padding: 0.75rem 0.25rem;
        min-height: 80px;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick Add Feedback Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #D4F7D4;
    color: #0D5F0D;
    border: 1px solid #A3E3A3;
}

.alert-error {
    background: #FFE5E5;
    color: #CC0000;
    border: 1px solid #FFB3B3;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 500px;
}

.contact-info-cards {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-card p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-features {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.contact-features h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-features li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Terms Page Styles */
.terms-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.terms-navigation {
    position: sticky;
    top: 2rem;
    height: fit-content;
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
}

.terms-navigation h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.terms-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-navigation li {
    margin-bottom: 0.5rem;
}

.terms-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.terms-navigation a:hover {
    color: var(--primary-color);
}

.terms-text {
    max-width: 800px;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-details {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: var(--radius-small);
    margin-top: 1rem;
}

.contact-details p {
    margin: 0.5rem 0;
}

.terms-footer {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.terms-footer p {
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

/* Quote Success Page Styles */
.success-header {
    background: linear-gradient(135deg, var(--secondary-color), #5fc95f);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-family: var(--font-primary);
}

.success-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.quote-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.quote-summary-card,
.customer-info-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.quote-summary-card h2,
.customer-info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.quote-number-section {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: var(--radius-medium);
    margin-bottom: 1.5rem;
}

.quote-number-section label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.quote-number-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-number-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #3a9f3c;
    transform: scale(1.1);
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-quoted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.next-steps {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--radius-medium);
}

.next-steps h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item span {
    color: var(--text-primary);
}

.requested-items-section {
    margin-bottom: 3rem;
}

.requested-items-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-small);
    overflow: hidden;
    background: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.item-placeholder {
    font-size: 2rem;
    color: var(--text-secondary);
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.item-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-size {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    font-style: italic;
}

.item-quantities {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-quantities .qty-badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.success-actions {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.success-actions .btn {
    margin: 0 0.5rem;
}

/* Mobile Responsive for Quote Success */
@media (max-width: 768px) {
    .success-header {
        padding: 3rem 0;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .quote-details-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Mobile Responsive for Contact and Terms */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-navigation {
        position: static;
        order: 2;
    }
    
    .terms-text {
        order: 1;
    }
}

/* Cart Items Mobile Responsive Design */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 16px 0;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .item-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .item-name {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .item-description {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 4px;
    }
    
    .item-quantities {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        align-items: flex-start;
    }
    
    .qty-badge {
        padding: 6px 10px;
        font-size: 11px;
        justify-content: center;
        width: auto;
        min-width: auto;
    }
    
    .qty-control-btn {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
    
    .item-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        margin-top: 12px;
    }
    
    .item-actions .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 10px;
        padding: 12px 0;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-description {
        font-size: 12px;
    }
    
    .qty-badge {
        padding: 5px 8px;
        font-size: 10px;
        width: auto;
        min-width: auto;
        gap: 4px;
    }
    
    .qty-control-btn {
        width: 16px;
        height: 16px;
        font-size: 11px;
    }
    
    .item-actions .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ================================================
   MOBILE BURGER MENU STYLES
   ================================================ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    z-index: 1001;
    position: relative;
}

/* Hide mobile cart on desktop */
.mobile-cart-item {
    display: none;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--secondary-color);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--secondary-color);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px 0;
        margin: 0;
        list-style: none;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.mobile-open {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--background-secondary);
        border-left-color: var(--secondary-color);
        color: var(--secondary-color);
    }
    
    /* Mobile Cart Item */
    .mobile-cart-item {
        display: block;
        margin-top: auto;
        border-top: 2px solid var(--border-color);
        background: var(--background-secondary);
    }
    
    .cart-nav-link {
        display: flex !important;
        align-items: center;
        gap: 12px;
        font-weight: 600 !important;
        position: relative;
    }
    
    .cart-nav-link svg {
        flex-shrink: 0;
    }
    
    .cart-nav-link span:first-of-type {
        flex: 1;
    }
    
    .mobile-cart-count {
        background: var(--secondary-color) !important;
        color: white !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        min-width: 20px !important;
    }
    
    /* Hide desktop nav actions on mobile */
    .nav-actions {
        display: none;
    }
    
    /* Mobile overlay */
    .nav-menu.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: -280px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-actions .search-bar {
        width: 200px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
} 