/* Font Faces - Shabnam */
@font-face {
    font-family: 'Shabnam';
    src: url('Shabnam.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('Shabnam-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('Shabnam-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Shabnam', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #dc2626 75%, #991b1b 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header Styles - European Premium */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    min-height: fit-content;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

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

.nav-item {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: none;
}

.nav-item:hover {
    background: transparent;
    transform: translateY(-2px);
    opacity: 0.8;
}

.nav-item i {
    color: #dc2626;
    font-size: 1.2rem;
}

.nav-item:first-child i {
    color: #3b82f6;
}

/* Phone icon color */
.nav-item[href^="tel:"] i {
    color: #3b82f6;
}


/* Banner Section - European Premium */
.banner-section {
    margin: 2rem auto;
    max-width: 1400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    height: 450px;
    position: relative;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

/* Category Section - Pinterest Style */
.category-section {
    margin: 2rem auto;
    max-width: 1200px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.category-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-container::-webkit-scrollbar {
    height: 6px;
}

.category-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 10px;
}

.category-container::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 10px;
}

.category-container::-webkit-scrollbar-thumb:hover {
    background: #5d5d5d;
}

.category-scroll {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.category-item {
    min-width: 120px;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-item.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

/* Products Section - European Premium */
.products-section {
    margin: 2rem auto;
    max-width: 1400px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.product-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.selected {
    border: 2px solid #dc2626;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.15);
}

.product-card.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.2) 100%);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 1.25rem 0.75rem;
    color: #ffffff;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.product-price {
    font-size: 1.5rem;
    color: #fbbf24;
    font-weight: 800;
    margin: 0 1.25rem 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.product-stock {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 1.25rem 1.25rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.25rem 1.25rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quantity-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.quantity-btn:active {
    transform: scale(1.05);
}

.quantity-input {
    width: 70px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s;
}

.quantity-input:focus {
    border-color: #3b82f6;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Order Section - European Premium */
.order-section {
    margin: 2rem auto;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: none;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.order-section.active {
    display: block;
}

.order-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.75rem;
}

.order-summary {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: background 0.3s;
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.order-total {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.order-form {
    margin-top: 2rem;
}

.order-form h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Floating Cart - European Premium */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.floating-cart:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.7);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-cart:active {
    transform: scale(1.05);
}

.floating-cart i {
    font-size: 2rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Footer - European Premium */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    text-align: center;
    width: 100%;
}

.enamad {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.enamad h3 {
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.enamad a {
    display: inline-block;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.enamad a:hover {
    transform: scale(1.05);
}

.enamad img {
    max-width: 150px;
    height: auto;
    display: block;
    cursor: pointer;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Product Modal - European Premium */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.8);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.modal-close:hover {
    background: rgba(220, 38, 38, 1);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-product-name {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-product-price {
    font-size: 2rem;
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-product-stock {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
}

.modal-product-code,
.modal-product-serial {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.modal-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 1rem 0;
}

.modal-description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
}

/* Sell Request Page Styles - Dark Mode */
.sell-hero {
    background: #2d2d2d;
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: calc(100% - 2rem);
    box-sizing: border-box;
    border: 2px solid #dc2626;
}

.sell-hero h1 {
    color: #dc2626;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sell-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.sell-form-section {
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.form-container {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d3d;
}

.form-container h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.75rem;
}

.image-upload-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.image-upload-notice i {
    font-size: 2rem;
    color: #3b82f6;
}

.image-upload-notice p {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .banner-section {
        height: 350px;
    }

    .header {
        padding: 0.6rem 1.5rem;
    }

    .header-container {
        gap: 1rem;
    }

    .logo img {
        height: 60px;
        max-width: 180px;
    }

    .nav {
        gap: 1rem;
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        min-width: auto;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .nav-item span {
        display: inline;
        font-size: 0.9rem;
    }
    
    /* Show icons for items without text */
    .nav-item i {
        display: inline-block;
        font-size: 1.1rem;
    }
    
    /* Hide icons only for items with text */
    .nav-item:has(span) i {
        display: none;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .header-container {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 55px;
        max-width: 160px;
    }

    .nav {
        gap: 0.4rem;
        flex-wrap: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
        min-width: auto;
        white-space: nowrap;
    }

    .nav-item span {
        display: inline;
        font-size: 0.8rem;
    }
    
    /* Show icons for items without text (WhatsApp, Instagram, Phone) */
    .nav-item i {
        display: inline-block;
        font-size: 1rem;
    }
    
    /* Hide icons only for items with text */
    .nav-item:has(span) i {
        display: none;
    }

    .banner-section {
        height: 200px;
        margin: 1rem auto;
        border-radius: 10px;
    }

    .category-section {
        margin: 1rem auto;
        padding: 1rem;
    }

    .category-item {
        min-width: 100px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .products-section {
        margin: 1rem auto;
        padding: 1rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-image {
        height: 150px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-stock {
        font-size: 0.85rem;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .quantity-input {
        width: 50px;
        font-size: 0.9rem;
    }

    .order-section {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .order-section h2 {
        font-size: 1.5rem;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-total {
        font-size: 1.3rem;
    }

    .floating-cart {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }

    .floating-cart i {
        font-size: 1.5rem;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .sell-hero {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }

    .sell-hero h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .sell-hero p {
        font-size: 0.95rem;
    }

    .sell-form-section {
        margin: 1rem auto;
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .footer-section p {
        font-size: 1rem;
    }

    .enamad {
        margin-top: 0.5rem;
    }

    .enamad img {
        max-width: 140px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .header {
        padding: 0.4rem 0.75rem;
    }

    .header-container {
        gap: 0.4rem;
    }

    .logo img {
        height: 45px;
        max-width: 140px;
    }

    .nav {
        gap: 0.3rem;
    }

    .nav-item {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        min-width: auto;
    }

    .nav-item span {
        display: inline;
        font-size: 0.75rem;
    }
    
    /* Show icons for items without text (WhatsApp, Instagram, Phone) */
    .nav-item i {
        display: inline-block;
        font-size: 0.9rem;
    }
    
    /* Hide icons only for items with text */
    .nav-item:has(span) i {
        display: none;
    }

    .banner-section {
        height: 180px;
        margin: 0.75rem auto;
    }

    .category-section {
        padding: 0.75rem;
    }

    .category-item {
        min-width: 90px;
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-image {
        height: 120px;
    }

    .product-name {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-stock {
        font-size: 0.8rem;
    }

    .product-quantity {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .quantity-input {
        width: 45px;
        padding: 0.25rem;
        font-size: 0.85rem;
    }

    .order-section {
        padding: 1rem;
    }

    .order-section h2 {
        font-size: 1.3rem;
    }

    .order-summary {
        padding: 1rem;
    }

    .order-item {
        padding: 0.75rem;
    }

    .order-total {
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.85rem;
        font-size: 1.1rem;
    }

    .floating-cart {
        width: 55px;
        height: 55px;
        bottom: 15px;
        left: 15px;
    }

    .floating-cart i {
        font-size: 1.3rem;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -3px;
        right: -3px;
    }

    .sell-hero {
        padding: 1.5rem 0.75rem;
    }

    .sell-hero h1 {
        font-size: 1.3rem;
    }

    .sell-hero p {
        font-size: 0.9rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .image-preview {
        max-width: 100%;
        max-height: 250px;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .enamad {
        margin-top: 0.5rem;
    }

    .enamad img {
        max-width: 120px;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .banner-section {
        height: 250px;
    }

    .sell-hero {
        padding: 1.5rem;
    }

    .sell-hero h1 {
        font-size: 1.6rem;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .modal-product-image {
        min-height: 300px;
    }

    .modal-product-name {
        font-size: 1.5rem;
    }

    .modal-product-price {
        font-size: 1.5rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-close {
        top: 1rem;
        left: 1rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-product-image {
        min-height: 250px;
    }

    .modal-product-name {
        font-size: 1.3rem;
    }

    .modal-product-price {
        font-size: 1.3rem;
    }

    .modal-description-title {
        font-size: 1.2rem;
    }

    .modal-product-description {
        font-size: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-item:hover {
        background: transparent;
        transform: none;
        opacity: 0.8;
    }

    .product-card:hover {
        transform: none;
    }

    .category-item:hover {
        transform: none;
    }

    .quantity-btn,
    .submit-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .floating-cart {
        min-width: 60px;
        min-height: 60px;
    }
}

