* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #172033;
}

a {
    color: inherit;
}

.container {
    width: min(1220px, calc(100vw - 32px));
    margin: 0 auto;
}

.top-bar {
    background: #111827;
    color: #e5e7eb;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: center;
}

.shop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dbe3ef;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.shop-header .container {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.shop-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-header .logo img {
    display: block;
    height: 46px;
    width: auto;
}

.sidebar-toggle-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

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

.search-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 48px 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    font-size: 15px;
}

.search-form .search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: #0f766e;
    color: #fff;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.header-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.header-actions a:hover,
.text-link:hover,
.product-card h3 a:hover,
.categories-list a:hover {
    color: #0f766e;
}

.shop-main,
.home-content {
    padding: 28px 0 46px;
}

.shop-eyebrow,
.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #be185d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.storefront-hero {
    min-height: clamp(420px, 56vh, 620px);
    display: flex;
    align-items: center;
    margin-top: -28px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.16)),
        url("images/102.jpg") center/cover no-repeat;
    color: #fff;
}

.storefront-hero .container {
    padding-top: 54px;
    padding-bottom: 74px;
}

.storefront-hero .shop-eyebrow {
    color: #f9a8d4;
}

.storefront-hero h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.storefront-hero p {
    max-width: 660px;
    margin: 0;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.6;
}

.hero-cta,
.shop-page-actions,
.product-details form,
.product-card form,
.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-cta {
    margin-top: 28px;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-small,
.btn-large {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary,
.btn.btn-primary {
    background: #be185d;
    color: #fff;
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: #9d174d;
}

.btn-secondary,
.btn.btn-secondary {
    background: #fff;
    color: #172033;
    border-color: #cbd5e1;
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-small {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 13px;
}

.btn-large {
    min-height: 48px;
    padding: 12px 18px;
}

.shop-service-strip {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.shop-service-strip .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.shop-service-strip .container > div,
.category-feature-grid a {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.shop-service-strip i,
.category-feature-grid i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfeff;
    color: #0f766e;
}

.featured-products-section,
.category-preview-section {
    padding-top: 42px;
}

.section-heading,
.shop-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2,
.shop-page-header h1 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 32px;
    letter-spacing: 0;
}

.shop-page-header {
    align-items: center;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.shop-page-header p {
    max-width: 620px;
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.product-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

.product-card-content {
    display: grid;
    gap: 10px;
    padding: 15px;
}

.product-card h3,
.product-details h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.product-card h3 a {
    text-decoration: none;
}

.product-card p,
.product-details p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.product-card-content > p:not(.price) {
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    color: #0f766e;
    font-size: 17px;
    font-weight: 900;
}

.product-card form {
    display: grid;
    grid-template-columns: auto minmax(62px, 82px) 1fr;
    align-items: end;
    gap: 8px;
    margin-top: 2px;
}

.product-card label,
.product-details label,
.shop-controls label,
.attribute-group label {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
}

.shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.shop-controls form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-count {
    color: #0f172a;
    font-weight: 900;
}

.search-context {
    color: #64748b;
    font-size: 14px;
}

.single-product-display {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 18px;
}

.single-product-display > .product-image,
.product-details {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.single-product-display > .product-image {
    aspect-ratio: 1 / 1;
}

.product-details {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.product-details form {
    align-items: end;
    padding-top: 6px;
}

.product-details form input[type="number"] {
    width: 96px;
}

.product-attributes {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.product-attributes h4 {
    margin: 0;
    color: #0f172a;
}

.attribute-group {
    display: grid;
    gap: 6px;
}

.category-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-feature-grid a {
    color: #172033;
    text-decoration: none;
}

.category-shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.categories-menu-container {
    position: sticky;
    top: 100px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.category-menu-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.category-menu-heading h2 {
    margin: 0;
    font-size: 18px;
}

.category-toggle-btn {
    width: 34px;
    height: 34px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

.categories-list {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.categories-list ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.categories-list a.active {
    background: #ecfeff;
    color: #0f766e;
}

.categories-list small {
    color: #64748b;
    font-weight: 800;
}

.category-results {
    min-width: 0;
}

.alert {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.empty-shop-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 42px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.empty-shop-state i {
    color: #0f766e;
    font-size: 30px;
}

.pagination {
    justify-content: center;
    margin-top: 22px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.cart-items-panel,
.cart-summary-panel {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-panel-header h2,
.cart-summary-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.cart-panel-header p {
    margin: 4px 0 0;
    color: #64748b;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 280px) 150px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-media {
    width: 96px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
    color: #64748b;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: grid;
    gap: 7px;
}

.cart-item-details h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.cart-attributes {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.cart-attributes span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.cart-unit-price {
    margin: 0;
    color: #0f766e;
    font-weight: 900;
}

.cart-quantity-form {
    display: grid;
    grid-template-columns: auto 78px;
    gap: 8px;
    align-items: end;
}

.cart-quantity-form button {
    grid-column: 1 / -1;
}

.cart-line-total {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.cart-line-total span,
.cart-summary-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.cart-line-total strong {
    color: #0f172a;
    font-size: 18px;
}

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-weight: 800;
    cursor: pointer;
}

.cart-summary-panel {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-summary-row strong {
    color: #0f172a;
    font-size: 18px;
}

.cart-summary-note {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    line-height: 1.5;
    font-size: 14px;
}

.cart-checkout-btn,
.cart-shop-btn {
    width: 100%;
}

.cart-empty-state .shop-page-actions {
    justify-content: center;
}

.profile-edit-link {
    margin-left: auto;
    text-decoration: none;
}

.customer-profile-panel {
    max-width: 860px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.customer-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-profile-form .form-group {
    display: grid;
    gap: 6px;
}

.customer-profile-form label {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.customer-profile-form .span-2,
.customer-profile-form .form-actions {
    grid-column: 1 / -1;
}

.customer-profile-form .form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-footer {
    background: #111827;
    color: #e5e7eb;
    padding: 36px 0 16px;
}

.shop-footer .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.footer-column h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-column a:hover {
    color: #67e8f9;
}

.footer-column .social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-column .social-media a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
}

.footer-bottom {
    margin-top: 24px;
    color: #94a3b8;
    font-size: 13px;
}

.customer-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.customer-sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.customer-sidebar-open {
    overflow: hidden;
}

.customer-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    z-index: 1000;
    width: 310px;
    max-width: calc(100vw - 28px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #fff;
    box-shadow: 24px 0 48px rgba(15, 23, 42, 0.28);
    transition: left 0.24s ease;
}

.customer-sidebar.active {
    left: 0;
}

.customer-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: #111827;
}

.customer-sidebar .sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.customer-sidebar .sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.customer-sidebar .close-sidebar-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.customer-sidebar .sidebar-nav {
    min-height: 0;
    overflow: auto;
    padding: 10px;
}

.customer-sidebar .sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customer-sidebar hr {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    margin: 12px 4px;
}

.customer-sidebar .sidebar-category {
    padding: 14px 10px 7px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.customer-sidebar .sidebar-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 800;
}

.customer-sidebar .sidebar-nav a i {
    width: 20px;
    color: #67e8f9;
    text-align: center;
}

.customer-sidebar .sidebar-nav a:hover,
.customer-sidebar .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.customer-sidebar .sidebar-nav a.active {
    box-shadow: inset 3px 0 0 #22c55e;
}

.customer-sidebar .sidebar-nav a.logout-link {
    color: #fecaca;
}

.customer-sidebar .sidebar-nav a.logout-link i {
    color: #fca5a5;
}

@media (max-width: 980px) {
    .shop-header .container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .shop-service-strip .container,
    .category-feature-grid,
    .single-product-display,
    .category-shop-layout,
    .cart-layout,
    .shop-footer .container {
        grid-template-columns: 1fr 1fr;
    }

    .category-shop-layout,
    .single-product-display,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .categories-menu-container {
        position: static;
    }

    .cart-summary-panel {
        position: static;
    }

    .cart-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .cart-quantity-form,
    .cart-line-total {
        grid-column: 1 / -1;
    }

    .cart-line-total {
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100vw - 20px, 1220px);
    }

    .storefront-hero {
        min-height: 500px;
    }

    .storefront-hero h1 {
        font-size: 40px;
    }

    .section-heading,
    .shop-page-header,
    .shop-controls {
        display: grid;
        align-items: start;
    }

    .shop-page-actions,
    .hero-cta {
        width: 100%;
    }

    .shop-page-actions .btn,
    .hero-cta .btn {
        flex: 1;
    }

    .shop-service-strip .container,
    .category-feature-grid,
    .shop-footer .container {
        grid-template-columns: 1fr;
    }

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

    .category-toggle-btn {
        display: inline-flex;
    }

    .categories-list {
        max-height: 360px;
    }

    .product-card form {
        grid-template-columns: auto 76px;
    }

    .product-card form button {
        grid-column: 1 / -1;
    }

    .customer-profile-form {
        grid-template-columns: 1fr;
    }

    .cart-panel-header,
    .cart-item {
        display: grid;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-media {
        width: 100%;
        max-width: 180px;
    }

    .header-actions a {
        width: 100%;
        justify-content: center;
    }
}
