/* ============================================
   ISHONCH — PRODUCT CATALOG STYLES
   ============================================ */

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 100px 0 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

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

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

/* --- Catalog Header --- */
.catalog__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.catalog__search-wrap {
    position: relative;
    flex: 0 1 320px;
}

.catalog__search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.catalog__search {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.catalog__search:focus {
    border-color: var(--accent-primary);
}

/* --- Layout --- */
.catalog__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* --- Sidebar --- */
.catalog__sidebar {
    padding: 24px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 90px;
}

.sidebar__close {
    display: none;
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.filter-group__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group__scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-group__scroll::-webkit-scrollbar {
    width: 4px;
}

.filter-group__scroll::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background 0.2s;
}

.filter-option:hover {
    background: rgba(16, 185, 129, 0.06);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-price__input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
}

.filter-price__input:focus {
    border-color: var(--accent-primary);
}

.filter-price__apply {
    width: 100%;
    padding: 8px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.filter-price__apply:hover {
    opacity: 0.85;
}

.filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* --- Toolbar --- */
.catalog__toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
}

.catalog__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
}

.catalog__sort select {
    padding: 8px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Product Card --- */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(16px);
    animation: cardIn 0.4s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__badge--hit {
    background: #fef3c7;
    color: #92400e;
}

.product-card__badge--new {
    background: #d1fae5;
    color: #065f46;
}

.product-card__body {
    padding: 16px 18px 20px;
}

.product-card__brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__specs {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__badge--oos {
    background: #fee2e2;
    color: #991b1b;
    top: auto;
    bottom: 12px;
    left: 12px;
}



/* Out of stock card */
.product-card--oos {
    opacity: 0.6;
    pointer-events: auto;
}

.product-card--oos .product-card__image img {
    filter: grayscale(0.5);
}

.product-card__price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.product-card__installment-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.product-card__installment-pill svg {
    flex-shrink: 0;
    opacity: 0.7;
}



/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    padding-bottom: 60px;
}

.pagination__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__btn:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.pagination__btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.product-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.product-modal__content {
    position: relative;
    width: 100%;
    max-width: 1024px;
    margin: auto;
    padding: 36px;
    border-radius: var(--radius-xl);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.product-modal__content.modal-sm {
    max-width: 500px;
    padding: 32px 24px;
}

.product-modal.open .product-modal__content {
    transform: translateY(0) scale(1) !important;
}

/* Prevent glass-card hover effect from turning it dark or shifting it */
.product-modal__content:hover {
    transform: translateY(0) scale(1) !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.product-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.product-modal__close:hover {
    color: var(--text-primary);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 32px;
    aspect-ratio: 1;
    align-self: start;
}

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

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    /* Prevent flex blowout */
}

.modal-brand {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    transition: background 0.2s;
}

.modal-spec-item:hover {
    background: rgba(16, 185, 129, 0.08);
}

.modal-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.modal-spec-icon svg {
    width: 14px;
    height: 14px;
}

.modal-spec-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 8px;
    word-break: break-word;
}

/* Custom scrollbar for description */
.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-installments {
    margin-top: 4px;
}

.modal-installments__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.modal-installments__title svg {
    color: var(--accent-primary);
}

.installment-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.installment-option {
    text-align: center;
    padding: 10px 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
}

.installment-option.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.installment-option:hover {
    border-color: var(--accent-primary);
}

.installment-option--full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    margin-bottom: 12px;
}

.installment-option__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.installment-option__months {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.installment-option.active .installment-option__months {
    color: var(--accent-primary);
}

.installment-option__price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
}

.installment-option__price span {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-one-click {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.btn-one-click:hover {
    background: rgba(16, 185, 129, 0.05);
}

.modal-actions-bottom {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
}

.btn-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy-now:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* --- Order Form in Modal --- */
.modal-order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.modal-order-form h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Removed .modal-order-form input styles in favor of global .form-input in style.css */

.modal-order-submit {
    padding: 14px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.modal-order-submit:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.modal-order-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-order-status {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Empty State --- */
.product-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog__layout {
        grid-template-columns: 1fr;
    }

    .catalog__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 60px;
    }

    .catalog__sidebar.open {
        transform: translateX(0);
    }

    .sidebar__close {
        display: block;
    }

    .filter-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .catalog__title {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card__body {
        padding: 12px 14px 16px;
    }

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

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

    .product-card__installment {
        font-size: 0.7rem;
    }

    .product-card__specs {
        display: none;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .product-modal__content {
        padding: 24px;
    }

    .modal-image {
        aspect-ratio: auto;
        padding: 20px;
    }

    .modal-specs-grid {
        grid-template-columns: 1fr;
    }

    .installment-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TELEGRAM FAB
   ============================================ */
.fab-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
        pulseGlow 2s infinite;
}

.fab-telegram:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6);
}

.fab-telegram svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-right: 2px;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .fab-telegram {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }

    .fab-telegram svg {
        width: 24px;
        height: 24px;
    }

    .fab-top {
        bottom: 84px;
        right: 24px;
    }
}

/* ============================================
   FOOTER (Extracted to standardize across pages)
   ============================================ */
.footer {
    padding: 80px 0 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--bg-primary) 0%, #e8f5e9 100%);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 300px;
}

.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer__col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__col a:hover {
    color: var(--accent-primary);
}

.footer__bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   SHOPPING CART STYLES
   ============================================ */

/* Cart button in navbar */
.navbar__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.navbar__cart:hover {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-primary);
}

.navbar__cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 4px;
}

.navbar__cart-count.show {
    display: flex;
    animation: cartPop 0.3s ease;
}

@keyframes cartPop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Add to cart button on product cards */
.product-card__cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .product-card__cart-btn {
    opacity: 1;
    transform: scale(1);
}

.product-card__cart-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.15) !important;
}

.product-card__cart-btn.added {
    opacity: 1;
    transform: scale(1);
    background: #22c55e;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Cart Header */
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-drawer__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer__title span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-drawer__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-drawer__close:hover {
    background: #e5e7eb;
    color: #111;
}

/* Cart Items Container */
.cart-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-drawer__items::-webkit-scrollbar {
    width: 4px;
}

.cart-drawer__items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

/* Empty cart state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.cart-empty__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.cart-empty__sub {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    animation: cartItemIn 0.3s ease;
}

@keyframes cartItemIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item__img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    padding: 6px;
}

.cart-item__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item__brand {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cart-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item__price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

/* Quantity controls */
.cart-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty__btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f9fafb;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cart-qty__btn:hover {
    background: #e5e7eb;
}

.cart-qty__val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    line-height: 30px;
}

/* Remove button */
.cart-item__remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: flex-start;
}

.cart-item__remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Cart Footer */
.cart-drawer__footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cart-total__label {
    font-size: 0.85rem;
    color: #6b7280;
}

.cart-total__value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
}

.cart-installment-hint {
    font-size: 0.78rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-checkout-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Cart Checkout Form */
.cart-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.cart-checkout-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
}

.cart-checkout-form .form-input:focus {
    border-color: var(--accent-primary);
    background: #fff;
}

.cart-checkout-form select.form-input {
    appearance: none;
    cursor: pointer;
    color: #374151;
}

.cart-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-submit-btn:hover {
    opacity: 0.9;
}

.cart-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

    .cart-toast {
        left: 16px;
        right: 16px;
        bottom: 80px;
        justify-content: center;
    }

    .product-card__cart-btn {
        opacity: 1;
        transform: scale(1);
    }
}