
/* ===== VARIABLES ===== */
:root {
    --color-primary: #000000;
    --color-primary-light: #333333;
    --color-accent: #dc2626;
    --color-accent-light: #ef4444;
    --color-dark: #111111;
    --color-gray: #4b5563;
    --color-light-gray: #e5e7eb;
    --color-white: #ffffff;
    --color-sale: #dc2626;
    --color-success: #10b981;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(220, 38, 38, 0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --mobile-header-height: 60px;
}

/* ===== RESET DHE BAZË ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: #f9fafb;
    color: var(--color-dark);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGIMI ===== */
.main-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.3);
}

.site-logo:hover {
    color: var(--color-accent);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

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

.cart-icon {
    position: relative;
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.admin-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.admin-btn:hover {
    background-color: var(--color-accent-light);
}

/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
    min-width: 300px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    color: white;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
    color: #1f2937;
    width: 100%;
}

.search-form input:focus::placeholder {
    color: #9ca3af;
}

.search-form button {
    position: absolute;
    right: 5px;
    background: var(--color-accent);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: var(--color-accent-light);
    transform: scale(1.05);
}

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid #e5e7eb;
}

.suggestion-item {
    padding: 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.suggestion-item:hover {
    background: #fef2f2;
}

.suggestion-item img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.suggestion-info h4 {
    font-size: 0.75rem;
    margin: 0;
    color: #1f2937;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info small {
    color: #dc2626;
    font-weight: 500;
    font-size: 0.65rem;
    white-space: nowrap;
}

.highlight {
    background: #fef3c7;
    font-weight: 500;
    padding: 0 1px;
}

.no-results-suggest {
    padding: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 0.7rem;
}

/* ===== USER MENU ===== */
.user-menu-container {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.user-btn:hover {
    background: #b91c1c;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.user-dropdown a:hover {
    background: #fef2f2;
    color: var(--color-accent);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 5px 0;
}

/* ===== HERO SECTION ===== */
.hero-offer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('images/logo.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.offer-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* ===== KATEGORITË ===== */
.categories-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--color-dark);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-accent);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.category-icon i {
    font-size: 30px;
    color: var(--color-primary);
}

.category-card:hover .category-icon i {
    color: var(--color-accent);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* ===== PRODUKTET ===== */
.featured-products {
    padding: 60px 0;
    background-color: #f9fafb;
}

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

.view-all-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--color-primary);
    gap: 12px;
}

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

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-sale);
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    z-index: 2;
}

.product-image {
    height: 220px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 20px;
}

.product-category-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
    height: 50px;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
    margin: 15px 0;
}

.current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
}

.old-price {
    font-size: 18px;
    color: var(--color-gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-stock {
    font-size: 0.8rem;
    color: #10b981;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-stock.low {
    color: #dc2626;
}

.btn-add-to-cart {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background-color: var(--color-accent);
}

.btn-view {
    background: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view:hover {
    background: #dc2626;
}

/* ===== NO PRODUCTS BOX ===== */
.no-products-box {
    text-align: center;
    padding: 30px 15px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    grid-column: 1/-1;
    margin: 15px 0;
}

.no-products-box i {
    font-size: 50px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.no-products-box h3 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 5px;
    font-weight: 600;
}

.no-products-box p {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-all {
    display: inline-block;
    padding: 8px 20px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(220,38,38,0.2);
}

.btn-all:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

/* ===== PRODUCT MODAL ===== */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.product-modal {
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
    border: 2px solid #dc2626;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
}

.modal-left {
    flex: 1;
    min-width: 0;
}

.modal-right {
    flex: 1;
    min-width: 0;
}

.modal-main-image {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    background: #f1f5f9;
}

.thumb.active {
    border-color: #dc2626;
    opacity: 1;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-close:hover {
    background: #dc2626;
    color: white;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    padding-right: 40px;
}

.modal-category {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 1rem;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-specs {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #334155;
    border-left: 4px solid #dc2626;
}

.modal-stock {
    font-size: 1rem;
    color: #10b981;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-stock.low {
    color: #dc2626;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: #dc2626;
    color: white;
}

.quantity-selector span {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.modal-add-to-cart {
    background: #000;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-add-to-cart:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,38,38,0.3);
}

/* ===== CART MODAL ===== */
.cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-modal {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cart-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.cart-modal-body {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-message {
    text-align: center;
    color: var(--color-gray);
}

.empty-cart-message i {
    margin-bottom: 20px;
    color: var(--color-light-gray);
}

.empty-cart-message h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.empty-cart-message p {
    margin-bottom: 25px;
    font-size: 16px;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--color-light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-checkout {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
    border-top: 3px solid var(--color-accent);
}

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

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    color: #d1d5db;
    font-size: 14px;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    min-height: 100vh;
    display: flex;
    background: #f9fafb;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 3px solid var(--color-accent);
}

.admin-sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-header h2 i {
    color: var(--color-accent);
}

.admin-sidebar-header p {
    margin: 8px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.admin-menu {
    padding: 20px 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.admin-menu a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: white;
    border-left-color: var(--color-accent);
}

.admin-menu a.active {
    background: rgba(220, 38, 38, 0.3);
    color: white;
    border-left-color: var(--color-accent);
}

.admin-menu a i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    overflow-y: auto;
}

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

.admin-header h1 {
    color: var(--color-primary);
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1 i {
    color: var(--color-accent);
}

.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-accent);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--color-accent);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-card div:last-child {
    color: var(--color-gray);
    font-size: 14px;
}

/* Admin Forms */
.add-product-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-top: 30px;
}

.add-product-section h2 {
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f9fafb;
}

.file-upload:hover {
    border-color: var(--color-accent);
    background: #fef2f2;
}

.file-upload i {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.file-upload p {
    margin: 10px 0 5px;
    font-weight: 600;
    color: var(--color-dark);
}

.file-upload small {
    color: var(--color-gray);
    font-size: 12px;
}

.submit-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* Messages */
.message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Products List */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--color-light-gray);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-accent);
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
    margin: 0;
}

.product-category {
    background: #fef2f2;
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-accent);
    margin: 10px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-btn,
.delete-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-size: 14px;
}

.edit-btn {
    background: #000;
    color: white;
}

.edit-btn:hover {
    background: #333;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
}

/* ===== ORDER STATUS ===== */
.order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-gray);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-flex {
    display: flex;
}

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

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE - TELEFON, LAPTOP, IPAD ===== */

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .container { max-width: 1200px; }
    .products-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .categories-grid { grid-template-columns: repeat(6, 1fr) !important; }
    .menu-toggle { display: none; }
    .main-nav { display: flex; }
    .admin-sidebar { width: 280px !important; }
    .admin-content { margin-left: 280px !important; }
    .admin-stats { grid-template-columns: repeat(4, 1fr) !important; }
    .products-list { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Tablet (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container { max-width: 960px; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .categories-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .admin-sidebar { width: 240px !important; }
    .admin-content { margin-left: 240px !important; }
    .admin-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .products-list { grid-template-columns: repeat(2, 1fr) !important; }
    .orders-table { min-width: 800px !important; }
}

/* Mobile Large & Tablet Small (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container { padding: 0 20px; }
    .site-logo { font-size: 24px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    
    /* Header */
    .header-top .container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-primary);
        flex-direction: column;
        padding: 20px;
        z-index: 999;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 15px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-container {
        width: 100%;
        min-width: auto;
        margin: 10px 0;
    }
    
    .search-form input {
        width: 100%;
    }
    
    /* Admin */
    .admin-panel {
        flex-direction: column !important;
    }
    
    .admin-sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }
    
    .admin-content {
        margin-left: 0 !important;
        padding: 25px !important;
    }
    
    .admin-menu {
        display: flex !important;
        overflow-x: auto !important;
    }
    
    .admin-menu a {
        white-space: nowrap !important;
        padding: 10px 15px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
    }
    
    .admin-menu a.active {
        border-bottom-color: var(--color-accent) !important;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Medium (376px - 480px) */
@media screen and (min-width: 376px) and (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0 15px; }
    .site-logo { font-size: 22px; }
    .hero-title { font-size: 28px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .category-card { padding: 15px 10px; }
    .category-icon { width: 50px; height: 50px; }
    .category-icon i { font-size: 22px; }
    .category-card h3 { font-size: 13px; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    
    /* Modal */
    .modal-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .modal-main-image {
        height: 200px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 2rem;
    }
    
    /* Admin */
    .admin-sidebar { width: 100% !important; }
    .admin-content { margin-left: 0 !important; padding: 20px !important; }
    .admin-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .products-list { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .product-item { padding: 12px !important; }
    .product-name { font-size: 14px !important; }
    .product-price { font-size: 16px !important; }
}

/* Mobile Small (320px - 375px) */
@media screen and (max-width: 375px) {
    html { font-size: 14px; }
    .container { padding: 0 12px; }
    .site-logo { font-size: 20px; }
    .header-top .container { padding: 10px 12px; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .admin-btn { padding: 6px 12px; font-size: 13px; }
    .cart-icon { font-size: 20px; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; }
    .hero-offer { padding: 30px 12px; }
    .offer-badge { font-size: 12px; padding: 6px 16px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .category-card { padding: 12px 8px; }
    .category-icon { width: 45px; height: 45px; }
    .category-icon i { font-size: 20px; }
    .category-card h3 { font-size: 12px; }
    .products-grid { grid-template-columns: 1fr !important; gap: 15px; }
    .product-image { height: 180px; }
    .product-name { font-size: 15px; height: auto; margin-bottom: 10px; }
    .product-price { font-size: 18px; }
    .btn-add-to-cart { padding: 12px; font-size: 14px; }
    .section-title { font-size: 24px; margin-bottom: 25px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    .footer-brand h3 { font-size: 24px; }
    
    /* Modal */
    .modal-content {
        flex-direction: column;
        padding: 15px;
    }
    
    .modal-main-image {
        height: 180px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-price {
        font-size: 1.8rem;
    }
    
    .thumb {
        width: 50px;
        height: 50px;
    }
    
    /* Cart Modal */
    .cart-modal { width: 95%; margin: 10px; }
    .cart-modal-body { padding: 20px; }
    .cart-review-item { flex-direction: column; align-items: flex-start; padding: 15px; }
    .cart-review-item-image { width: 80px; height: 80px; }
    .cart-review-item-name { font-size: 16px; }
    .cart-review-item-price { font-size: 18px; }
    
    /* Admin */
    .admin-panel { flex-direction: column !important; }
    .admin-sidebar { width: 100% !important; height: auto !important; position: relative !important; }
    .admin-sidebar-header { padding: 15px 20px !important; }
    .admin-sidebar-header h2 { font-size: 18px !important; }
    .admin-menu { display: flex !important; overflow-x: auto !important; padding: 10px 15px !important; gap: 8px !important; }
    .admin-menu a { padding: 8px 12px !important; font-size: 13px !important; border-left: none !important; border-bottom: 3px solid transparent !important; }
    .admin-menu a.active { border-bottom-color: var(--color-accent) !important; }
    .admin-content { margin-left: 0 !important; padding: 15px !important; width: 100% !important; }
    .admin-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .admin-header h1 { font-size: 20px !important; }
    .logout-btn { width: 100% !important; justify-content: center !important; }
    .admin-stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .stat-card { padding: 12px 8px !important; }
    .stat-icon { width: 40px !important; height: 40px !important; font-size: 18px !important; }
    .stat-number { font-size: 20px !important; }
    .add-product-section { padding: 15px !important; }
    .form-row { grid-template-columns: 1fr !important; }
    .products-list { grid-template-columns: 1fr !important; }
    .orders-filter { flex-direction: column !important; align-items: stretch !important; }
    .filter-select { width: 100% !important; }
    .orders-table { min-width: 600px !important; }
    .order-actions { flex-direction: column !important; }
    .users-table { min-width: 500px !important; }
}

/* Pajisje shumë të vogla (320px poshtë) */
@media screen and (max-width: 320px) {
    .admin-stats { grid-template-columns: 1fr !important; }
    .admin-menu a { padding: 6px 8px !important; font-size: 12px !important; }
    .admin-menu a i { display: none !important; }
    .stat-icon { width: 35px !important; height: 35px !important; font-size: 16px !important; }
    .stat-number { font-size: 18px !important; }
}

/* Galaxy S21 Ultra & pajisje specifike */
@media screen and (min-width: 384px) and (max-width: 412px) and (min-height: 800px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .product-image { height: 160px; }
    .product-name { font-size: 14px; height: 40px; }
    .product-price { font-size: 16px; }
    .current-price { font-size: 18px; }
    .btn-add-to-cart { padding: 10px; font-size: 13px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .products-list { grid-template-columns: repeat(2, 1fr) !important; }
    .product-item { padding: 12px !important; }
    .stat-card { padding: 12px !important; }
    .stat-number { font-size: 22px !important; }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover, 
    .category-card:hover, 
    .admin-menu a:hover { 
        transform: none; 
    }
    .btn-add-to-cart, 
    .btn-primary, 
    .admin-btn { 
        padding: 14px 20px; 
    }
}

/* Notch Support */
@supports (padding-top: env(safe-area-inset-top)) {
    .main-header { 
        padding-top: env(safe-area-inset-top); 
    }
    .cart-modal { 
        padding-bottom: env(safe-area-inset-bottom); 
    }
}

/* Scrollbar Styling */
.orders-table-wrapper::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.orders-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.orders-table-wrapper::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}
.orders-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}