@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.domain-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.lang-wrapper select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    font-size: 0.85rem;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0369a1;
    font-size: 0.88rem;
    font-weight: 600;
    background: #e0f2fe;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #bae6fd;
}

.cart-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 14px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid white;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #0284c7 100%);
    color: white;
    text-align: center;
    padding: 4.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.hero-banner p {
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-chip {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

/* Məhsullar Bölməsi və Filtrlər */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
}

.container h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    position: relative;
}

.container h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-top: 6px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Məhsul Grid və Kartı */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 26px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px -10px rgba(37, 99, 235, 0.18);
    border-color: #93c5fd;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.img-wrapper {
    width: 100%;
    height: 240px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-info {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    cursor: pointer;
    color: #0f172a;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title:hover {
    color: #2563eb;
}

.product-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.details-btn, .add-to-cart {
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.details-btn {
    background: #f1f5f9;
    color: #334155;
    flex: 1;
}

.details-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.add-to-cart {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    flex: 1.4;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

/* Modallar */
.modal, .cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cart-modal {
    justify-content: flex-end;
    padding: 0;
}

.modal.active, .cart-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 22px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: #ef4444;
}

.detail-grid img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin-bottom: 16px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 15px;
    border: 1px solid #f1f5f9;
}

.detail-specs {
    margin-top: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.detail-specs strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.detail-specs ul {
    list-style-type: none;
    margin-top: 10px;
}

.detail-specs li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
    position: relative;
    padding-left: 22px;
}

.detail-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.contact-info {
    margin: 12px 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 10px 16px;
    border-radius: 10px;
    display: inline-block;
}

.contact-info a {
    color: #0369a1;
    text-decoration: none;
}

/* Səbət Yan Paneli */
.cart-content {
    background: white;
    width: 100%;
    max-width: 430px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    font-size: 1.3rem;
    cursor: pointer;
    color: #64748b;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.close-btn:hover {
    background: #ef4444;
    color: white;
}

.cart-items {
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.empty-cart-box {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-cart-box i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.cart-item-info small {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
}

.qty-btn {
    border: none;
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.cart-footer {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.total-price {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    color: #0f172a;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.checkout-form input, .checkout-form select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
}

.checkout-form input:focus {
    border-color: #2563eb;
}

.phone-input-group {
    display: flex;
    gap: 6px;
}

.phone-input-group input {
    flex: 1;
}

#phone-hint {
    color: #64748b;
    font-size: 0.75rem;
}

.error-box {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: none;
}

.checkout-btn {
    margin-top: 6px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal */
.success-box {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Toast Bildiriş */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 900;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 3rem;
}

.site-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

/* Müəllif nişanı (Instagram) */
.author-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #be185d;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fdf2f8;
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid #fbcfe8;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.author-badge:hover {
    background: #fce7f3;
    transform: translateY(-1px);
}

.author-badge i {
    font-size: 1.05rem;
}

/* Mobil Uyğunluq */
@media (max-width: 768px) {
    .location-badge {
        display: none;
    }
    .header-right {
        gap: 8px;
    }
    .author-badge {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .hero-banner h1 {
        font-size: 1.85rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Səbət məhsul kartı (yeni) */
.cart-item {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
}

.cart-item-img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info .qty-controls {
    align-self: flex-start;
    margin-top: 8px;
}

/* Səbət paneli: məzmun qədər hündürlük (boş yer qalmır) */
.cart-modal {
    align-items: flex-start;
}

.cart-content {
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    border-bottom-left-radius: 24px;
}

.cart-items {
    flex: 0 0 auto;
    overflow: visible;
}
/* Çox kiçik ekranlarda yalnız Instagram ikonu */
@media (max-width: 480px) {
    .author-badge span {
        display: none;
    }
    .author-badge {
        padding: 10px;
    }
}
