:root {
    --bg: #f6fbff;
    --ink: #0f1a2b;
    --accent: #1f6feb;
    --accent-soft: #b9d7ff;
    --card: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 24px 60px rgba(31, 111, 235, 0.18);
    --detail-title-color: var(--ink);
    --detail-muted-color: #4a5d7a;
    --detail-text-color: #243a61;
    --detail-strong-color: var(--accent);
    --detail-label-color: #273f68;
    --detail-field-bg: rgba(255, 255, 255, 0.86);
    --detail-field-border: rgba(31, 111, 235, 0.2);
    --detail-field-text: var(--ink);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #e2f1ff 0%, #fdf4ff 45%, #ffffff 100%);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(31, 111, 235, 0.25) 0%, rgba(31, 111, 235, 0) 70%);
    z-index: -1;
    animation: float 14s ease-in-out infinite;
}

body::before {
    top: -120px;
    inset-inline-start: -120px;
    filter: blur(2px);
}

body::after {
    bottom: -160px;
    inset-inline-end: -140px;
    animation-delay: -6s;
    filter: blur(6px);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #bfe9ff 0%, #9fd8ff 50%, #7cc7ff 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 14px;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}


.logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    font-family: "Playfair Display", "Tajawal", "Cairo", "Segoe UI", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 46%;
}

 .header-cart-link {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.header-cart-link svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff2d2d;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.header-cart-link:hover {
    color: #dbeafe;
}

.logo-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.logo-kom {
    color: #0b2a5b;
    font-weight: 800;
}

.logo-gift {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(11, 42, 91, 0.2);
}

.logo-k {
    color: inherit;
    font-weight: 800;
}

.main-nav a {
    margin-inline: 12px;
    font-weight: 600;
    color: #0b2a5b;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle,
.drawer-close,
.drawer-backdrop,
.drawer-lang {
    display: none;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(11, 42, 91, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0b2a5b;
    border-radius: 999px;
}

.lang-switch {
    font-weight: 700;
    color: #0b2a5b;
}

.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

 .header-search-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
 }

 .header-search-input {
    width: 150px;
    height: 30px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    padding: 0 8px;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search-input:focus {
    outline: none;
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

 .header-search-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
 }
    font-size: 14px;
    line-height: 1;
}

.hero {
    padding: 60px 0 40px;
    background: radial-gradient(circle at top, rgba(185, 215, 255, 0.6), rgba(255, 255, 255, 0.7)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(217, 236, 255, 0.7) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-inline {
    padding: 26px 0 12px;
    border-bottom: 0;
    background: transparent;
}

.hero-inline h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.35;
}

.home-search-section {
    padding: 8px 0 22px;
}

.home-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(31, 111, 235, 0.14);
}

.home-search-input {
    flex: 1;
    min-width: 180px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--detail-field-border);
    background: var(--detail-field-bg);
    color: var(--detail-field-text);
    padding: 0 12px;
    font-size: 16px;
}

.home-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.home-search-btn {
    height: 44px;
    min-width: 110px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.home-search-results {
    margin-top: 14px;
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(31, 111, 235, 0.14);
}

.home-search-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.home-search-results-head h2 {
    margin: 0;
    font-size: 22px;
}

.home-search-results-head span {
    color: var(--detail-muted-color);
    font-weight: 600;
}

.home-search-group + .home-search-group {
    margin-top: 18px;
}

.home-search-group > h3 {
    margin: 0 0 10px;
    color: var(--detail-title-color);
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-card {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(31, 111, 235, 0.25);
    backdrop-filter: blur(18px);
    text-align: center;
    animation: rise 0.7s ease both;
    transform-origin: center;
}

.slider-section {
    padding: 40px 0;
}

.brand-strip-section {
    padding: 10px 0 20px;
}

.slider {
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    direction: ltr;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 26px 70px rgba(31, 111, 235, 0.18);
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.7s ease-in-out;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    aspect-ratio: 1100 / 320;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.slide .placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.6);
    font-size: 28px;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    background: rgba(15, 26, 43, 0.65);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 26px rgba(15, 26, 43, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav span {
    font-size: 30px;
    line-height: 1;
}

.slider-nav-prev {
    left: 16px;
}

.slider-nav-next {
    right: 16px;
}

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

.card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(31, 111, 235, 0.16);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: rise 0.7s ease both;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 80px rgba(31, 111, 235, 0.22);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card .placeholder {
    width: 100%;
    height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    color: #26406a;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(213, 231, 255, 0.72) 100%);
    font-weight: 700;
}

.card-body {
    padding: 16px;
}

.product-grid {
    grid-template-columns: repeat(5, 220px);
    justify-content: center;
    gap: 18px;
}

.product-grid .card {
    width: 220px;
    height: 330px;
    position: relative;
    display: block;
}

.product-grid .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid .card-body {
    position: absolute;
    inset-inline: 10px;
    bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

.product-grid .card-body h3 {
    margin: 0;
    line-height: 1.3;
}

.product-grid .card-body p {
    margin: 6px 0 0;
}

.product-grid .card-price {
    margin-top: 6px;
    color: #0b2a5b;
}

.product-grid .card--empty {
    width: auto;
    min-width: 220px;
    height: auto;
}

.products-section,
.category-section {
    padding: 30px 0 50px;
}

.store-section-head {
    display: grid;
    gap: 6px;
    justify-items: start;
    margin-bottom: 10px;
}

.store-section-head h2 {
    margin: 0;
}

.brand-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.brand-section-head h2 {
    margin: 0;
}

.store-view-all {
    font-weight: 700;
    color: var(--detail-strong-color);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--detail-field-border);
    padding: 8px 12px;
    border-radius: 10px;
}

.store-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.store-category-card {
    width: 220px;
    height: 330px;
    position: relative;
    display: block;
}

.store-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-category-card .placeholder {
    height: 100%;
}

.store-category-card .card-body {
    position: absolute;
    inset-inline: 10px;
    bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

.brand-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 149px;
    height: 200px;
    min-height: 200px;
    padding: 10px 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 40px rgba(31, 111, 235, 0.12);
    backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.brand-chip__thumb {
    width: 100%;
    height: 144px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
}

.brand-chip__name {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: #0b2a5b;
    line-height: 1.2;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-chip--button {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand-chip--button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(31, 111, 235, 0.18);
}

.brand-chip--button.is-active {
    border-color: rgba(31, 111, 235, 0.45);
    box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.25), 0 20px 44px rgba(31, 111, 235, 0.18);
}

.brand-chip__all {
    font-size: 16px;
    color: #0b2a5b;
    font-weight: 800;
}

.brand-chip--empty {
    width: auto;
    min-width: 220px;
    justify-content: center;
}

.card-price {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
}

.card--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.page-header {
    padding: 30px 0 10px;
}

.product-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.product-media-col {
    position: relative;
    width: 220px;
}

.product-fixed-media {
    width: 220px;
    height: 330px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(31, 111, 235, 0.16);
    box-shadow: 0 20px 50px rgba(15, 26, 43, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

.product-fixed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    cursor: zoom-in;
}

.product-fixed-media--empty {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    color: #1c3968;
    font-weight: 700;
}

.product-meta-col h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.2;
}

.product-meta-col p {
    margin-top: 0;
    font-size: 17px;
    line-height: 1.75;
}

.product-back-link {
    margin-top: 12px;
}

.product-info-card {
    max-width: 760px;
}

.product-info-card .card-body {
    font-size: 17px;
    line-height: 1.7;
}

.product-info-card .card-price {
    font-size: 24px;
    font-weight: 800;
}

.product-info-card label {
    font-size: 16px;
    font-weight: 700;
}

.product-info-card select {
    font-size: 16px;
}

.product-gallery-slider {
    position: relative;
    width: 220px;
    height: 330px;
}

.product-gallery-slider .slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform: none !important;
}

.product-gallery-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    height: 330px;
    aspect-ratio: 220 / 330;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.product-gallery-slider .slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.product-gallery-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    margin-top: 10px;
    width: 220px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.product-gallery-thumb {
    width: 100%;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(31, 111, 235, 0.22);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

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

.product-gallery-thumb.is-active {
    border-color: rgba(31, 111, 235, 0.6);
    box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.35);
}

.product-zoom-pane {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: calc(100% + 16px);
    width: 260px;
    height: 390px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(31, 111, 235, 0.22);
    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 26, 43, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 8;
}

.product-zoom-pane.is-visible {
    opacity: 1;
    visibility: visible;
}

.product-zoom-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.2);
    transform-origin: center center;
    will-change: transform, transform-origin;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b9d7ff 0%, #ffe0f7 100%);
    color: #0f1a2b;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #1f6feb 0%, #5b8cff 55%, #7a5cff 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(31, 111, 235, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.platform-top-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.platform-top-links a {
    color: var(--header-ink, #0b2a5b);
    font-weight: 700;
}

.platform-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
        linear-gradient(135deg, #eef8ff 0%, #f7f4ff 44%, #fff1ec 100%);
}

.platform-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: center;
}

.platform-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
}

.platform-hero__copy h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.4vw, 58px);
    line-height: 1.08;
    color: #0f172a;
}

.platform-hero__copy p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.9;
    color: #334155;
}

.platform-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.platform-stat,
.platform-showcase__card,
.platform-showcase__mini,
.platform-feature-card,
.platform-plan-card,
.platform-step,
.platform-cta {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.platform-stat {
    padding: 14px;
    border-radius: 16px;
}

.platform-stat strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
}

.platform-stat span {
    color: #475569;
    font-size: 13px;
}

.platform-showcase {
    display: grid;
    gap: 14px;
}

.platform-showcase__card {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
    color: #fff;
}

.platform-showcase__label {
    display: inline-block;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.platform-showcase__card h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
}

.platform-showcase__card p {
    margin: 0;
    color: #dbe4f0;
    line-height: 1.9;
}

.platform-showcase__mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
}

.platform-showcase__mini strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}

.platform-showcase__mini span {
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.platform-section {
    padding: 34px 0;
}

.platform-section--accent {
    background: linear-gradient(180deg, #f7fbff 0%, #fef6ff 100%);
}

.platform-section__head {
    margin-bottom: 18px;
}

.platform-section__head span {
    display: inline-block;
    margin-bottom: 8px;
    color: #5b6b86;
    font-weight: 800;
}

.platform-section__head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.25;
}

.platform-feature-grid,
.platform-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.platform-feature-card,
.platform-plan-card {
    padding: 20px;
    border-radius: 22px;
}

.platform-feature-card h3,
.platform-plan-card h3,
.platform-cta h3 {
    margin: 0 0 10px;
    color: #0f172a;
}

.platform-feature-card p,
.platform-cta p {
    margin: 0;
    color: #475569;
    line-height: 1.85;
}

.platform-plan-card.is-featured {
    background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
}

.platform-plan-card.is-featured h3,
.platform-plan-card.is-featured .platform-plan-card__price,
.platform-plan-card.is-featured li,
.platform-plan-card.is-featured .platform-plan-card__badge {
    color: #fff;
}

.platform-plan-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
}

.platform-plan-card__price {
    margin: 0 0 12px;
    color: #334155;
    font-weight: 800;
}

.platform-plan-card__list {
    margin: 0;
    padding-inline-start: 18px;
    color: #475569;
    line-height: 1.9;
}

.platform-onboard {
    padding-bottom: 56px;
}

.platform-start-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 22px;
    align-items: start;
}

.platform-start-card {
    background: rgba(255, 255, 255, 0.86);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(31, 111, 235, 0.14);
    box-shadow: 0 22px 56px rgba(31, 111, 235, 0.12);
    backdrop-filter: blur(12px);
}

.platform-start-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.platform-start-form {
    display: grid;
    gap: 14px;
}

.platform-captcha-block {
    display: grid;
    gap: 8px;
}

.platform-captcha-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    border-radius: 16px;
    border: 1px dashed rgba(31, 111, 235, 0.25);
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.08), rgba(255, 255, 255, 0.95));
    padding: 8px 10px;
}

.platform-captcha-preview img {
    max-width: 100%;
    height: auto;
}

.platform-start-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-step-list {
    display: grid;
    gap: 12px;
}

.platform-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
}

.platform-step__number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    flex: 0 0 42px;
}

.platform-step p {
    margin: 0;
    color: #334155;
    line-height: 1.8;
}

.platform-cta {
    margin-top: 18px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #eef6ff 100%);
}

@media (max-width: 920px) {
    .platform-hero__grid,
    .platform-stats,
    .platform-showcase__mini,
    .platform-start-grid {
        grid-template-columns: 1fr;
    }

    .platform-top-links {
        display: none;
    }
}

.card:hover,
.feature-card:hover,
.btn:hover,
.hero-card:hover,
.summary-card:hover,
.checkout-card:hover,
.profile-card:hover {
    animation: hover-shake 0.35s ease-in-out;
}

.checkout {
    padding: 20px 0 50px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: start;
}

.checkout-card {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 28px 70px rgba(31, 111, 235, 0.2);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}


.login-card {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

.summary-card {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 28px 70px rgba(31, 111, 235, 0.2);
    backdrop-filter: blur(14px);
    animation: rise 0.7s ease both;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-note {
    font-size: 14px;
    color: var(--detail-muted-color);
    margin-top: 12px;
}

.features-section {
    padding: 10px 0 40px;
}

.feature-card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 26px 60px rgba(31, 111, 235, 0.18);
    backdrop-filter: blur(16px);
    animation: rise 0.7s ease both;
}

.feature-card h3 {
    margin: 12px 0 8px;
}

.icon-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.2), rgba(255, 120, 204, 0.2));
    color: var(--accent);
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

label input,
label select,
label textarea {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--detail-field-border);
    background: rgba(255, 255, 255, 0.8);
}

.phone-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin-top: 8px;
}

.payment-options {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.alert {
    background: rgba(255, 230, 223, 0.8);
    color: #a63d1a;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert.success {
    background: rgba(215, 245, 230, 0.8);
    color: #0f6b4b;
}

.order-details {
    padding: 20px 0 50px;
}

.order-details .panel {
    background: var(--card);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
}

.details-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}

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

.profile {
    padding: 20px 0 50px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.profile-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 26px 60px rgba(31, 111, 235, 0.16);
    backdrop-filter: blur(14px);
    padding: 18px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.verify-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(246, 199, 160, 0.4);
    color: #8a4b1f;
}

.status-badge.ok {
    background: rgba(165, 238, 198, 0.5);
    color: #0f6b4b;
}

.status-badge.warn {
    background: rgba(255, 212, 188, 0.6);
    color: #a63d1a;
}

.table-wrap {
    overflow-x: auto;
}

.profile table {
    width: 100%;
    border-collapse: collapse;
}

.profile th,
.profile td {
    padding: 10px;
    text-align: start;
    border-bottom: 1px solid rgba(31, 111, 235, 0.12);
}

.grid .card:nth-child(2),
.grid .feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.grid .card:nth-child(3),
.grid .feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(28px);
    }
}

@keyframes hover-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
}

@media (max-width: 720px) {
    .home-search-form {
        flex-wrap: wrap;
    }

    .home-search-input {
        width: 100%;
    }

    .home-search-btn {
        min-width: 92px;
    }

    .logo {
        max-width: 62%;
    }

    .logo-text {
        max-width: 200px;
    }

    .payment-options {
        flex-direction: column;
    }

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

    .product-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-media-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .product-grid,
    .store-category-grid {
        grid-template-columns: repeat(4, 220px);
    }

    .header-inner {
        display: flex;
        align-items: center;
        position: relative;
        gap: 8px;
    }

    .header-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .logo {
        max-width: 100%;
        margin: 0;
    }

    .header-cart-link {
        width: 36px;
        height: 36px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        z-index: 46;
        position: static;
        inset-inline-start: auto;
        top: auto;
        transform: none;
        margin: 0;
        order: 1;
    }

    .header-tools {
        display: none;
    }

    .lang-switch,
    .header-search-form {
        display: none;
    }

    html[dir="rtl"] .header-inner { justify-content: flex-start; }
    html[dir="rtl"] .menu-toggle { order: 1; }
    html[dir="rtl"] .header-cart-link { order: 2; }
    html[dir="rtl"] .header-tools {
        display: inline-flex;
        align-items: center;
        order: 3;
        flex: 0 0 50%;
        max-width: 50%;
    }
    html[dir="rtl"] .header-tools .header-search-form {
        display: inline-flex;
        width: 100%;
    }
    html[dir="rtl"] .header-tools .lang-switch {
        display: none !important;
    }
    html[dir="rtl"] .header-search-input {
        width: calc(100% - 38px);
        height: 30px;
        font-size: 12px;
        padding: 0 6px;
    }
    html[dir="rtl"] .header-search-btn {
        width: 34px;
        height: 34px;
        font-size: 19px;
        line-height: 1;
    }
    html[dir="rtl"] .header-brand {
        order: 4;
        margin-inline-start: auto;
        flex: 0 0 auto;
    }
    html[dir="rtl"] .logo-text {
        display: none;
    }
    html[dir="rtl"] .logo-gift {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 320px;
        max-width: calc(100vw - 56px);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        box-shadow: 0 24px 60px rgba(15, 26, 43, 0.22);
        border-inline-start: 1px solid rgba(31, 111, 235, 0.18);
        z-index: 45;
        display: grid;
        align-content: start;
        gap: 8px;
        padding: 18px;
        padding-top: max(18px, env(safe-area-inset-top));
        overflow-y: auto;
        transition: transform 0.28s ease;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    html[dir="rtl"] .main-nav {
        right: 0;
        left: auto;
        transform: translateX(104%);
    }

    html[dir="ltr"] .main-nav {
        left: 0;
        right: auto;
        transform: translateX(-104%);
    }

    body.drawer-open .main-nav,
    .main-nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav a {
        margin: 0;
        display: block;
        padding: 11px 10px;
        border-radius: 10px;
        background: rgba(31, 111, 235, 0.08);
    }

    .drawer-close {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        border: 1px solid var(--detail-field-border);
        background: #fff;
        color: #0b2a5b;
        border-radius: 10px;
        padding: 8px 12px;
        cursor: pointer;
        font-weight: 700;
    }

    .drawer-lang {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(31, 111, 235, 0.14);
        color: #0b2a5b;
        font-weight: 700;
    }

    .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: none;
        background: rgba(15, 26, 43, 0.5);
        opacity: 0;
        pointer-events: none;
        z-index: 40;
        transition: opacity 0.28s ease;
    }

    body.drawer-open {
        overflow: hidden;
    }

    body.drawer-open .drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .product-zoom-pane {
        display: none;
    }
}

@media (max-width: 767px) {
    .product-grid,
    .store-category-grid {
        grid-template-columns: repeat(2, 220px);
    }

    .main-nav {
        width: min(80vw, 290px);
    }
}

@media (max-width: 520px) {
    .product-grid,
    .store-category-grid {
        grid-template-columns: 220px;
    }
}

.digital-card-layout {
    display: grid;
    grid-template-areas: "details media";
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}

html[dir="ltr"] .digital-card-layout {
    grid-template-areas: "media details";
    grid-template-columns: 350px minmax(0, 1fr);
}

.digital-card-media {
    grid-area: media;
}

.digital-card-media-frame {
    width: 350px;
    height: 500px;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--detail-field-border);
    box-shadow: 0 24px 55px rgba(15, 26, 43, 0.2);
    background: rgba(255, 255, 255, 0.78);
}

.digital-card-media-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    color: #26406a;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(213, 231, 255, 0.72) 100%);
}

.digital-card-details {
    grid-area: details;
    min-height: 500px;
    padding: 22px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--glass-border);
    box-shadow: 0 22px 48px rgba(31, 111, 235, 0.14);
    backdrop-filter: blur(14px);
}

.digital-card-title {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.25;
    color: var(--detail-title-color);
}

.digital-card-parent {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--detail-muted-color);
}

.digital-card-description {
    margin: 14px 0 0;
    line-height: 1.9;
    color: var(--detail-text-color);
}

.digital-card-price-line {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 111, 235, 0.2);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.digital-card-price-line span {
    color: var(--detail-muted-color);
    font-weight: 700;
}

.digital-card-price-line strong {
    color: var(--detail-strong-color);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.digital-card-cart-form {
    margin-top: 18px;
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.digital-card-qty-label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--detail-label-color);
}

.digital-card-qty-label input {
    width: 110px;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--detail-field-border);
    background: var(--detail-field-bg);
}

@media (max-width: 920px) {
    .digital-card-layout,
    html[dir="ltr"] .digital-card-layout {
        grid-template-areas:
            "media"
            "details";
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .digital-card-media {
        justify-self: center;
    }

    .digital-card-media-frame {
        width: min(100%, 350px);
        height: auto;
        aspect-ratio: 350 / 500;
    }

    .digital-card-details {
        min-height: 0;
    }
}

.store-product-layout {
    align-items: start;
}

.store-product-details {
    min-height: 500px;
}

.store-product-serial {
    margin: 10px 0 0;
    color: var(--detail-text-color);
}

.store-product-purchase {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 111, 235, 0.2);
}

.store-product-price-label {
    margin: 0;
}

.store-product-price-value {
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.store-product-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 12px;
}

.store-product-stock {
    margin-top: 10px;
    color: var(--detail-text-color);
}

.product-media-col {
    width: 350px;
}

.product-fixed-media {
    width: 350px;
    height: 500px;
}

.product-gallery-slider {
    width: 350px;
    height: 500px;
}

.product-gallery-slider .slide {
    height: 500px;
    aspect-ratio: 350 / 500;
}

.product-gallery-thumbs {
    width: 350px;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.product-gallery-thumb {
    height: 62px;
}

.product-zoom-pane {
    width: 350px;
    height: 500px;
}

@media (max-width: 920px) {
    .product-media-col,
    .product-fixed-media,
    .product-gallery-slider,
    .product-gallery-thumbs {
        width: min(100%, 350px);
    }

    .product-fixed-media,
    .product-gallery-slider {
        height: auto;
        aspect-ratio: 350 / 500;
    }

    .product-gallery-slider .slide {
        height: 100%;
    }
}

/* Force language-direction layout for digital/store detail split panels */
html[dir="rtl"] .digital-card-layout,
html[lang="ar"] .digital-card-layout {
    grid-template-areas: "details media" !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
}

html[dir="ltr"] .digital-card-layout,
html[lang="en"] .digital-card-layout {
    grid-template-areas: "media details" !important;
    grid-template-columns: 350px minmax(0, 1fr) !important;
}

/* Final direction fix for product detail pages: use flex to avoid grid+dir ambiguity */
.digital-card-layout {
    display: flex !important;
    align-items: flex-start;
    gap: 30px;
    flex-direction: row !important;
}

.digital-card-media,
.product-media-col.digital-card-media {
    flex: 0 0 350px;
    width: 350px;
}

.digital-card-details,
.digital-card-details.store-product-details {
    flex: 1 1 auto;
    min-width: 0;
}

html[dir="rtl"] .digital-card-layout,
html[lang="ar"] .digital-card-layout {
    flex-direction: row-reverse !important;
}

html[dir="ltr"] .digital-card-layout,
html[lang="en"] .digital-card-layout {
    flex-direction: row !important;
}

@media (max-width: 920px) {
    .digital-card-layout,
    html[dir="rtl"] .digital-card-layout,
    html[dir="ltr"] .digital-card-layout,
    html[lang="ar"] .digital-card-layout,
    html[lang="en"] .digital-card-layout {
        flex-direction: column !important;
        gap: 18px;
    }

    .digital-card-media,
    .product-media-col.digital-card-media {
        flex: 0 0 auto;
        width: min(100%, 350px);
        margin-inline: auto;
    }
}

/* Absolute ordering fix for product detail pages */
.digital-card-layout {
    flex-direction: row !important;
}

html[dir="rtl"] .digital-card-layout .digital-card-media,
html[lang="ar"] .digital-card-layout .digital-card-media {
    order: 2 !important;
}

html[dir="rtl"] .digital-card-layout .digital-card-details,
html[lang="ar"] .digital-card-layout .digital-card-details {
    order: 1 !important;
}

html[dir="ltr"] .digital-card-layout .digital-card-media,
html[lang="en"] .digital-card-layout .digital-card-media {
    order: 1 !important;
}

html[dir="ltr"] .digital-card-layout .digital-card-details,
html[lang="en"] .digital-card-layout .digital-card-details {
    order: 2 !important;
}

@media (max-width: 920px) {
    .digital-card-layout .digital-card-media,
    .digital-card-layout .digital-card-details {
        order: initial !important;
    }
}

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

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(11, 42, 91, 0.22);
    background: rgba(255, 255, 255, 0.62);
    color: #0b2a5b;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 42, 91, 0.14);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .drawer-lang {
        width: 100%;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(31, 111, 235, 0.14);
    }

    .drawer-lang .lang-toggle-btn {
        width: 100%;
        min-height: 42px;
        border-radius: 12px;
    }
}

/* Theme-aware detail text fallback to prevent unreadable text in dark themes */
.store-product-price-label,
.store-product-stock,
.store-product-serial,
.digital-card-description,
.digital-card-parent,
.digital-card-title,
.digital-card-qty-label,
.store-product-spec-grid label,
.store-product-spec-select {
    color: var(--detail-text-color);
}

.store-product-spec-select,
.store-product-spec-grid select,
.store-product-spec-grid input,
.digital-card-qty-label input {
    color: var(--detail-field-text);
    background: var(--detail-field-bg);
    border-color: var(--detail-field-border);
}
/* Global fix: keep product zoom lens above detail panel in all themes */
.digital-card-layout,
.store-product-layout {
    overflow: visible !important;
}

.digital-card-media,
.product-media-col.digital-card-media,
.product-media-col {
    position: relative;
    z-index: 40;
}

.digital-card-details,
.digital-card-details.store-product-details,
.store-product-details {
    position: relative;
    z-index: 20;
}

.product-zoom-pane {
    z-index: 9999 !important;
}

/* Global typography normalization across public pages */
:root {
    --font-base-size: 16px;
    --font-body-line: 1.6;
    --font-small-size: 15px;
}

body {
    font-size: var(--font-base-size);
    line-height: var(--font-body-line);
}

p,
li,
label,
input,
select,
textarea,
button,
.btn,
a,
td,
th {
    font-size: var(--font-base-size) !important;
}

small,
.muted,
.card-body p,
.digital-card-parent,
.store-product-serial,
.store-product-stock,
.summary-note {
    font-size: var(--font-small-size) !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    :root {
        --font-base-size: 15px;
        --font-small-size: 14px;
    }
}

.checkout-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-cart-table th,
.checkout-cart-table td {
    padding: 12px 10px;
    text-align: start;
    border-bottom: 1px solid rgba(31, 111, 235, 0.12);
    vertical-align: middle;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-product-image {
    width: 48px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-qty-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-qty-input {
    width: 84px;
}

.summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-actions form {
    margin: 0;
}

@media (max-width: 720px) {
    .checkout-card,
    .summary-card {
        padding: 16px;
    }

    .checkout-cart-table thead {
        display: none;
    }

    .checkout-cart-table,
    .checkout-cart-table tbody,
    .checkout-cart-table tr,
    .checkout-cart-table td {
        display: block;
        width: 100%;
    }

    .checkout-cart-table tr {
        border: 1px solid rgba(31, 111, 235, 0.18);
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    .checkout-cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }

    .checkout-cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--detail-heading-color);
        flex: 0 0 auto;
    }

    .checkout-cart-table td:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-cart-table td:first-child::before {
        margin-bottom: 4px;
    }

    .cart-product-cell {
        width: 100%;
        align-items: flex-start;
    }

    .cart-product-image {
        width: 44px;
        height: 64px;
    }

    .cart-qty-form {
        width: 100%;
        justify-content: flex-end;
    }

    .cart-qty-input {
        width: 76px;
    }

    .summary-actions .btn,
    .summary-actions form,
    .summary-actions form .btn {
        width: 100%;
    }
}
