
/* =========================================
   1. Design tokens
   ========================================= */

:root {
    --store-primary: #c2185b;
    --store-primary-hover: #a3154d;
    --store-primary-soft: #fceaf1;
    --store-background: #f8f9fa;
    --store-surface: #ffffff;
    --store-surface-muted: #f4f5f7;
    --store-text: #25272b;
    --store-text-muted: #777d85;
    --store-border: #e9ecef;
    --store-success: #198754;
    --store-danger: #dc3545;
    --store-radius-sm: 8px;
    --store-radius-md: 12px;
    --store-radius-lg: 18px;
    --store-shadow: 0 4px 18px rgb(20 25 35 / 5%);
    --store-container-width: 1320px;
}

/* =========================================
   2. Global styles
   ========================================= */

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--store-text);
    background: var(--store-background);
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: var(--store-primary);
    }

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgb(194 24 91 / 25%);
        outline-offset: 3px;
    }

.store-container {
    width: 100%;
    max-width: var(--store-container-width);
    margin-inline: auto;
    padding-inline: 16px;
}

.store-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding-block: 20px 36px;
}

/* =========================================
   3. Announcement bar
   ========================================= */

.announcement-bar {
    background: #25272b;
    color: #ffffff;
    font-size: 12px;
}

    .announcement-bar .store-container {
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

.announcement-secondary {
    color: #d6d8dc;
}

/* =========================================
   4. Header
   ========================================= */

.store-header {
    position: relative;
    z-index: 20;
    background: var(--store-surface);
    border-bottom: 1px solid var(--store-border);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 18px;
}

.store-logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: var(--store-text);
}

    .store-logo:hover {
        color: var(--store-text);
    }

.store-logo-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: var(--store-primary);
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
}

.store-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

    .store-logo-text strong {
        font-size: 19px;
        font-weight: 800;
    }

    .store-logo-text small {
        color: var(--store-text-muted);
        font-size: 10px;
    }

.store-search {
    display: flex;
    flex: 1;
    min-width: 100px;
    max-width: 560px;
    height: 46px;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-md);
    background: var(--store-surface-muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .store-search:focus-within {
        border-color: var(--store-primary);
        box-shadow: 0 0 0 3px rgb(194 24 91 / 8%);
    }

.store-search-input {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--store-text);
    font-size: 13px;
}

    .store-search-input:focus {
        outline: 0;
        box-shadow: none;
    }

.store-search-button {
    display: grid;
    flex-shrink: 0;
    width: 48px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--store-primary);
    cursor: pointer;
}

    .store-search-button:hover {
        background: var(--store-primary-soft);
    }

.header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.account-link-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--store-border);
    border-radius: 50%;
    font-size: 20px;
}

.account-link span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

.account-link small {
    color: var(--store-text-muted);
    font-size: 11px;
}

.account-link strong {
    font-size: 12px;
    font-weight: 700;
}

.account-area {
    display: flex;
    flex-direction: column;
    max-width: 140px;
    line-height: 1.7;
}

.account-greeting {
    color: var(--store-text-muted);
    font-size: 11px;
}

.account-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-surface);
    color: var(--store-text);
    font-size: 12px;
    white-space: nowrap;
}

    .header-icon-link:hover {
        border-color: var(--store-primary);
        color: var(--store-primary);
    }

.logout-form {
    margin: 0;
}

.logout-button {
    cursor: pointer;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid var(--store-primary);
    border-radius: var(--store-radius-md);
    color: var(--store-primary);
    font-weight: 600;
    white-space: nowrap;
}

    .cart-link:hover {
        background: var(--store-primary-soft);
        color: var(--store-primary);
    }

.cart-icon {
    font-size: 17px;
}

/* =========================================
   5. Navigation
   ========================================= */

.store-navigation {
    border-top: 1px solid #f1f2f4;
    background: var(--store-surface);
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
}

.navigation-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding-inline: 16px;
    color: #555b63;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .navigation-link:hover {
        color: var(--store-primary);
    }

/* =========================================
   6. Shared buttons and cards
   ========================================= */

.btn-primary {
    --bs-btn-bg: var(--store-primary);
    --bs-btn-border-color: var(--store-primary);
    --bs-btn-hover-bg: var(--store-primary-hover);
    --bs-btn-hover-border-color: var(--store-primary-hover);
    --bs-btn-active-bg: var(--store-primary-hover);
    --bs-btn-active-border-color: var(--store-primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--store-primary);
    --bs-btn-border-color: var(--store-primary);
    --bs-btn-hover-bg: var(--store-primary);
    --bs-btn-hover-border-color: var(--store-primary);
    --bs-btn-active-bg: var(--store-primary-hover);
}

.card {
    border-color: var(--store-border);
    border-radius: var(--store-radius-md);
}

.form-control,
.form-select {
    border-color: #dfe3e8;
    border-radius: var(--store-radius-sm);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--store-primary);
        box-shadow: 0 0 0 3px rgb(194 24 91 / 10%);
    }

/* =========================================
   7. Footer
   ========================================= */

.store-footer {
    margin-top: auto;
    background: var(--store-surface);
    border-top: 1px solid var(--store-border);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
    color: var(--store-text-muted);
    font-size: 12px;
}

/* =========================================
   8. Responsive layout
   ========================================= */

@media (min-width: 768px) {
    .store-main {
        padding-block: 28px 48px;
    }
}

@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: wrap;
        gap: 14px;
    }

    .store-search {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }

    .header-actions {
        margin-inline-start: auto;
        gap: 8px;
    }

    .account-area {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 13px;
    }

    .store-container {
        padding-inline: 12px;
    }

    .announcement-bar .store-container {
        justify-content: center;
        text-align: center;
    }

    .announcement-secondary {
        display: none;
    }

    .header-main {
        gap: 12px;
        padding-block: 12px;
    }

    .store-logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 22px;
    }

    .store-logo-text strong {
        font-size: 16px;
    }

    .store-logo-text small {
        font-size: 9px;
    }

    .header-actions {
        gap: 7px;
    }

    .account-link {
        gap: 5px;
    }

    .account-link-icon {
        width: 34px;
        height: 34px;
    }

    .account-link span:last-child {
        display: none;
    }

    .header-icon-link {
        padding: 6px 8px;
        font-size: 11px;
    }

    .cart-link {
        gap: 4px;
        padding: 8px;
        font-size: 11px;
    }

    .store-search {
        height: 42px;
    }

    .navigation-links {
        min-height: 42px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .navigation-link {
        min-height: 42px;
        padding-inline: 12px;
    }

    .store-main {
        padding-block: 14px 28px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   Shared footer
   ========================================= */

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding-block: 36px;
}

.footer-about p {
    max-width: 420px;
    margin-top: 18px;
    color: var(--store-text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

    .footer-links h2 {
        margin: 0 0 8px;
        font-size: 15px;
        font-weight: 700;
    }

    .footer-links a {
        color: var(--store-text-muted);
        font-size: 13px;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: var(--store-primary);
        }

/* =========================================
   Mobile bottom navigation
   ========================================= */

.mobile-bottom-nav {
    display: none;
}

.mobile-nav-item {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--store-text-muted);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus-visible {
        color: var(--store-primary);
    }

/* =========================================
   Responsive footer and bottom navigation
   ========================================= */

@media (max-width: 767.98px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-block: 28px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1000;
        inset-inline: 0;
        bottom: 0;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 4px;
        min-height: 64px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--store-border);
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 -4px 18px rgb(20 25 35 / 5%);
        backdrop-filter: blur(12px);
    }

    .store-main {
        padding-bottom: 28px;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .mobile-nav-item {
        font-size: 9px;
    }

        .mobile-nav-item svg {
            width: 20px;
            height: 20px;
        }

    .footer-content {
        gap: 18px;
    }
}
.auth-register-link {
    color: var(--color-primary, #d63384);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .auth-register-link:hover {
        color: #a61e63;
        text-decoration: underline;
    }



/* ==========================================
   Admin Product Management - Glass UI
   ========================================== */

.admin-page {
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding: 30px 24px 50px;
    color: #29243a;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

    .admin-page-header h1 {
        margin: 0;
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        font-weight: 800;
        letter-spacing: -0.6px;
    }

.admin-eyebrow {
    margin-bottom: 8px;
    color: #c14f91;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-page-description {
    margin: 10px 0 0;
    color: #858093;
    font-size: 0.92rem;
}

.admin-page .btn-admin-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    background: linear-gradient(135deg, #d85c9c, #b94d91);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(185, 77, 145, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .admin-page .btn-admin-primary:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(185, 77, 145, 0.25);
    }

.admin-button-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 110px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 28px rgba(49, 37, 75, 0.055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-stat-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f9eaf3;
    color: #c14f91;
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-stat-icon-success {
    background: #e6f7ee;
    color: #198754;
}

.admin-stat-icon-muted {
    background: #f0eef5;
    color: #777184;
}

.admin-stat-icon-warning {
    background: #fff3dc;
    color: #b77912;
}

.admin-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #858093;
    font-size: 0.83rem;
}

.admin-stat-value {
    display: block;
    color: #302940;
    font-size: 1.55rem;
    font-weight: 800;
}

.admin-page .admin-glass-card {
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 36px rgba(49, 37, 75, 0.065);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

    .admin-section-header h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .admin-section-header p {
        margin: 8px 0 0;
        color: #898397;
        font-size: 0.87rem;
    }

.admin-count-badge {
    flex-shrink: 0;
    padding: 8px 13px;
    border: 1px solid #f0d9e7;
    border-radius: 11px;
    background: #fdf4f9;
    color: #b64c88;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #f0edf4;
    border-radius: 15px;
}

.admin-page .admin-table {
    width: 100%;
    min-width: 900px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: middle;
}

    .admin-page .admin-table thead th {
        padding: 17px 14px;
        border: 0;
        border-bottom: 1px solid #eee8f3;
        background: #f9f6fb;
        color: #756780;
        font-size: 0.84rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .admin-page .admin-table tbody td {
        padding: 16px 14px;
        border: 0;
        border-bottom: 1px solid #f1eef5;
        background: transparent;
        color: #454052;
        font-size: 0.88rem;
    }

    .admin-page .admin-table tbody tr {
        transition: background-color 0.18s ease;
    }

        .admin-page .admin-table tbody tr:hover td {
            background: #fdf8fc;
        }

        .admin-page .admin-table tbody tr:last-child td {
            border-bottom: 0;
        }

.admin-id {
    color: #92889d;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-product-name {
    color: #302940;
    font-weight: 700;
}

.admin-price {
    color: #302940;
    font-weight: 800;
    white-space: nowrap;
}

.admin-muted {
    color: #aaa4b4;
}

.admin-status-badge,
.admin-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 0.79rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-active {
    background: #e9f8ef;
    color: #198754;
}

.admin-status-inactive {
    background: #f1eff4;
    color: #777184;
}

.admin-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.admin-stock-normal {
    background: #edf5ff;
    color: #3478c8;
}

.admin-stock-low {
    background: #fff4df;
    color: #a56a0b;
}

.admin-stock-empty {
    background: #fff0f0;
    color: #c43d4b;
}

.admin-actions-heading {
    min-width: 190px;
}

.admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-action-form {
    display: inline-flex;
    margin: 0;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

    .admin-action-btn:hover {
        transform: translateY(-1px);
    }

.admin-action-edit {
    border-color: #f4dfb9;
    background: #fff7e9;
    color: #96600c;
}

    .admin-action-edit:hover {
        background: #ffedce;
        color: #805008;
    }

.admin-action-disable {
    border-color: #f4d4d7;
    background: #fff0f1;
    color: #bd3543;
}

    .admin-action-disable:hover {
        background: #ffe0e3;
    }

.admin-action-enable {
    border-color: #ccebd9;
    background: #eaf8f0;
    color: #198754;
}

    .admin-action-enable:hover {
        background: #d9f3e4;
    }

.admin-table-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    color: #898397;
    font-size: 0.85rem;
}

    .admin-table-footer strong {
        color: #51445f;
    }

.admin-empty-state {
    padding: 45px 15px;
    text-align: center;
}

.admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: #f9eaf3;
    color: #c14f91;
    font-size: 2rem;
}

.admin-empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.admin-empty-state p {
    margin-bottom: 22px;
    color: #898397;
}

@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-page {
        padding: 22px 12px 35px;
    }

    .admin-page-header {
        align-items: stretch;
        flex-direction: column;
    }

        .admin-page-header .btn-admin-primary {
            width: 100%;
        }

    .admin-stats-grid {
        gap: 10px;
    }

    .admin-stat-card {
        min-height: 95px;
        gap: 10px;
        padding: 13px;
        border-radius: 16px;
    }

    .admin-stat-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    .admin-stat-value {
        font-size: 1.3rem;
    }

    .admin-stat-label {
        font-size: 0.75rem;
    }

    .admin-page .admin-glass-card {
        padding: 14px;
        border-radius: 17px;
    }

    .admin-section-header {
        align-items: flex-start;
    }

        .admin-section-header h2 {
            font-size: 1rem;
        }

    .admin-count-badge {
        padding: 7px 9px;
        font-size: 0.74rem;
    }
}

/* ===== Homepage: Glassmorphism Design ===== */

.home-page {
    --home-ink: #17233d;
    --home-muted: #78839a;
    --home-primary: #6157e8;
    --home-border: rgba(255, 255, 255, .75);
    color: var(--home-ink);
    padding-bottom: 48px;
}

.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 24px;
    min-height: 420px;
    margin: 28px auto 58px;
    padding: 54px clamp(24px, 5vw, 68px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 32px;
    background: radial-gradient(circle at 15% 15%, rgba(151, 142, 255, .24), transparent 35%), radial-gradient(circle at 85% 85%, rgba(101, 205, 237, .2), transparent 35%), linear-gradient(135deg, #f7f7ff, #eef3ff 52%, #f4faff);
    box-shadow: 0 22px 65px rgba(57, 68, 126, .09);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--home-primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.hero-content h1 {
    max-width: 560px;
    margin: 18px 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.55;
    font-weight: 900;
    letter-spacing: -.04em;
}

    .hero-content h1 span {
        display: block;
        color: var(--home-primary);
    }

.hero-content > p {
    max-width: 510px;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 2.1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-primary-button,
.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-primary-button {
    color: #fff;
    background: linear-gradient(135deg, #7165f4, #5147d7);
    box-shadow: 0 9px 24px rgba(97, 87, 232, .25);
}

    .hero-primary-button:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 13px 28px rgba(97, 87, 232, .32);
    }

.hero-secondary-button {
    color: var(--home-ink);
    border: 1px solid rgba(100, 105, 150, .14);
    background: rgba(255,255,255,.62);
}

    .hero-secondary-button:hover {
        color: var(--home-primary);
        transform: translateY(-2px);
    }

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #65718a;
    font-size: .82rem;
}

    .hero-benefits i {
        display: inline-grid;
        place-items: center;
        width: 19px;
        height: 19px;
        margin-left: 4px;
        border-radius: 50%;
        color: #16866b;
        background: #d9f8ec;
        font-style: normal;
    }

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.hero-glass-card {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(290px, 76%);
    height: 310px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 35px;
    background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.25));
    box-shadow: 0 25px 60px rgba(80, 89, 158, .16);
    backdrop-filter: blur(18px);
    transform: rotate(-5deg);
}

.hero-device {
    width: 135px;
    height: 235px;
    padding: 7px;
    border: 3px solid #252b42;
    border-radius: 25px;
    background: #252b42;
    box-shadow: 0 18px 35px rgba(25, 34, 63, .25);
    transform: rotate(5deg);
}

.device-camera {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 50%;
    width: 38px;
    height: 7px;
    border-radius: 8px;
    background: #252b42;
    transform: translateX(-50%);
}

.device-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background: linear-gradient(155deg, #8e86ff, #4f58b9 65%, #59bdd1);
}

    .device-screen > span {
        font-size: .65rem;
        letter-spacing: .22em;
    }

    .device-screen strong {
        font-size: 1rem;
    }

    .device-screen small {
        font-size: .65rem;
        opacity: .85;
    }

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(105, 98, 227, .2);
    border-radius: 50%;
}

.orbit-one {
    width: 340px;
    height: 340px;
}

.orbit-two {
    width: 420px;
    height: 420px;
    border-style: dashed;
}

.floating-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 15px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 12px 30px rgba(53, 62, 116, .1);
    backdrop-filter: blur(14px);
    font-size: .8rem;
    font-weight: 800;
}

    .floating-chip span {
        color: var(--home-primary);
        font-size: 1.2rem;
    }

.chip-top {
    top: 32px;
    right: 0;
}

.chip-bottom {
    bottom: 30px;
    left: 0;
}

.hero-decoration {
    position: absolute;
    z-index: -1;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(2px);
    background: rgba(120, 111, 240, .08);
}

.decoration-one {
    top: -70px;
    left: 30%;
}

.decoration-two {
    right: -80px;
    bottom: -80px;
}

.home-section {
    margin-top: 58px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .section-heading h2 {
        margin: 8px 0;
        font-size: clamp(1.35rem, 2.5vw, 1.8rem);
        font-weight: 900;
    }

    .section-heading p {
        margin: 0;
        color: var(--home-muted);
        font-size: .9rem;
    }

.section-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--home-primary);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

    .section-link:hover {
        color: #4137c4;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-glass-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    color: var(--home-ink);
    background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(241,243,255,.72));
    box-shadow: 0 12px 35px rgba(45, 57, 111, .055);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}

    .category-glass-card::after {
        position: absolute;
        left: -30px;
        bottom: -45px;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: rgba(113, 101, 244, .08);
        content: "";
    }

    .category-glass-card:hover {
        color: var(--home-primary);
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(45, 57, 111, .1);
    }

.category-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--home-primary);
    background: #eeedff;
    font-size: 1.6rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 900;
}

.category-caption {
    margin-top: 7px;
    color: var(--home-muted);
    font-size: .78rem;
}

.category-arrow {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #9693d8;
    font-size: 1.2rem;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(227, 230, 243, .9);
    border-radius: 23px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 30px rgba(39, 51, 99, .055);
    transition: transform .22s ease, box-shadow .22s ease;
}

    .home-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 42px rgba(39, 51, 99, .12);
    }

.home-product-image {
    position: relative;
    display: grid;
    place-items: center;
    height: 225px;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #f6f7ff, #edf3fb);
    text-decoration: none;
}

    .home-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .3s ease;
    }

.home-product-card:hover .home-product-image img {
    transform: scale(1.045);
}

.product-new-label {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 9px;
    color: #5147d7;
    background: rgba(255,255,255,.8);
    font-size: .72rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9a9fc4;
}

    .product-image-placeholder span {
        font-size: 3.5rem;
    }

    .product-image-placeholder small {
        font-size: .8rem;
    }

.home-product-info {
    padding: 18px;
}

.home-product-brand {
    color: var(--home-muted);
    font-size: .76rem;
}

.home-product-info h3 {
    min-height: 50px;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.8;
}

    .home-product-info h3 a {
        color: var(--home-ink);
        text-decoration: none;
    }

        .home-product-info h3 a:hover {
            color: var(--home-primary);
        }

.home-product-description {
    min-height: 48px;
    margin-bottom: 18px;
    color: var(--home-muted);
    font-size: .79rem;
    line-height: 1.9;
}

.home-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #eff0f7;
}

.home-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

    .home-product-price strong {
        font-size: 1.05rem;
        font-weight: 900;
    }

    .home-product-price span {
        color: var(--home-muted);
        font-size: .75rem;
    }

.product-view-button {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 13px;
    color: #fff;
    background: var(--home-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .2s ease;
}

    .product-view-button:hover {
        color: #fff;
        background: #443ac9;
    }

.home-empty-state {
    padding: 30px;
    border: 1px dashed #d8d9ed;
    border-radius: 18px;
    color: var(--home-muted);
    text-align: center;
    background: rgba(255,255,255,.6);
}

.home-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 65px;
    padding: 35px clamp(22px, 4vw, 48px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 25px;
    background: linear-gradient(110deg, #f0efff, #eef8ff);
}

    .home-promo h2 {
        margin: 10px 0;
        font-size: clamp(1.2rem, 2.5vw, 1.7rem);
        font-weight: 900;
    }

    .home-promo p {
        margin: 0;
        color: var(--home-muted);
        line-height: 1.9;
    }

@media (max-width: 991.98px) {
    .home-hero {
        grid-template-columns: 1fr .8fr;
        padding: 38px 28px;
    }

    .hero-art {
        transform: scale(.86);
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 18px;
        padding: 32px 22px;
        border-radius: 24px;
    }

    .hero-content h1 {
        font-size: 2.15rem;
    }

    .hero-art {
        min-height: 270px;
        transform: scale(.82);
        margin: -4px 0;
    }

    .hero-benefits {
        gap: 10px;
    }

    .home-section {
        margin-top: 42px;
    }

    .section-heading {
        align-items: flex-start;
    }

        .section-heading p {
            max-width: 230px;
            line-height: 1.9;
        }

    .category-grid {
        gap: 12px;
    }

    .category-glass-card {
        min-height: 140px;
        padding: 16px;
    }

    .home-product-grid {
        gap: 12px;
    }

    .home-product-image {
        height: 175px;
        padding: 12px;
    }

    .home-product-info {
        padding: 13px;
    }

        .home-product-info h3 {
            font-size: .9rem;
        }

    .home-product-price strong {
        font-size: .9rem;
    }

    .home-product-description {
        font-size: .75rem;
    }

    .home-promo {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 45px;
        padding: 25px 20px;
    }
}

@media (max-width: 380px) {
    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .home-product-image {
        height: 230px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }
}
/* =========================================
   Home page - Red & White Banner Carousel
   ========================================= */

:root {
    --store-primary: #c2185b;
    --store-primary-hover: #a3154d;
    --store-primary-soft: #fceaf1;
}

.store-hero {
    position: relative;
    margin: 0 auto 36px;
    overflow: hidden;
    border: 1px solid rgba(194, 24, 91, 0.10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(60, 20, 40, 0.10);
}

.store-banner-carousel,
.store-banner-slide {
    position: relative;
    width: 100%;
}

.store-banner-slide {
    min-height: 300px;
    height: clamp(300px, 36vw, 470px);
    overflow: hidden;
    background: linear-gradient(120deg, #fff0f5, #f8dce7);
}

.store-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.store-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 270deg, rgba(65, 12, 37, 0.82) 0%, rgba(110, 18, 58, 0.62) 42%, rgba(110, 18, 58, 0.08) 100% );
}

.store-banner-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(24px, 7%, 90px);
    left: 20%;
    transform: translateY(-50%);
    max-width: 540px;
    color: #fff;
    text-align: right;
}

.store-banner-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.store-banner-content h1,
.store-hero-fallback h1 {
    margin: 0 0 14px;
    font-size: clamp(25px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

.store-banner-content p,
.store-hero-fallback p {
    margin-bottom: 22px;
    font-size: clamp(13px, 1.3vw, 17px);
    line-height: 2;
    color: rgba(255, 255, 255, 0.92);
}

.store-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    color: var(--store-primary);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .store-banner-button:hover {
        transform: translateY(-2px);
        border-color: var(--store-primary);
        background: var(--store-primary);
        color: #fff;
    }

.store-banner-carousel .carousel-indicators {
    z-index: 4;
    margin-bottom: 18px;
}

    .store-banner-carousel .carousel-indicators [data-bs-target] {
        width: 24px;
        height: 5px;
        margin-inline: 4px;
        border: 0;
        border-radius: 999px;
        background-color: #fff;
        opacity: 0.55;
    }

    .store-banner-carousel .carousel-indicators .active {
        width: 38px;
        background-color: #fff;
        opacity: 1;
    }

.store-banner-control {
    z-index: 3;
    width: 7%;
    opacity: 0.9;
}

    .store-banner-control .carousel-control-prev-icon,
    .store-banner-control .carousel-control-next-icon {
        width: 38px;
        height: 38px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        background-color: rgba(75, 10, 40, 0.35);
        background-size: 48%;
        backdrop-filter: blur(8px);
    }

/* Fallback when no active banner exists */

.store-hero-fallback {
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: clamp(28px, 6vw, 72px);
    background: radial-gradient( circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 30% ), linear-gradient(120deg, #a3154d, #c2185b 60%, #e34d83);
    color: #fff;
}

.store-hero-fallback-content {
    max-width: 620px;
}

.store-hero-fallback .store-banner-button {
    text-decoration: none;
}

/* Mobile */

@media (max-width: 767.98px) {
    .store-hero {
        margin-bottom: 26px;
        border-radius: 16px;
    }

    .store-banner-slide {
        height: 340px;
        min-height: 340px;
    }

    .store-banner-image {
        object-position: center;
    }

    .store-banner-overlay {
        background: linear-gradient( 0deg, rgba(65, 12, 37, 0.88) 0%, rgba(110, 18, 58, 0.56) 65%, rgba(110, 18, 58, 0.10) 100% );
    }

    .store-banner-content {
        top: auto;
        right: 22px;
        bottom: 42px;
        left: 22px;
        transform: none;
    }

        .store-banner-content h1 {
            font-size: 25px;
            line-height: 1.6;
        }

        .store-banner-content p {
            margin-bottom: 16px;
            font-size: 13px;
        }

    .store-banner-eyebrow {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .store-banner-button {
        min-height: 42px;
        padding: 9px 18px;
        font-size: 13px;
    }

    .store-banner-control {
        width: 12%;
    }

        .store-banner-control .carousel-control-prev-icon,
        .store-banner-control .carousel-control-next-icon {
            width: 30px;
            height: 30px;
        }

    .store-hero-fallback {
        min-height: 280px;
        padding: 28px 22px;
    }
}
