/* ============================================
   KLAVIA — Professional Product Page
   Brand Colors: #1E88E5 / #37474F / #000
   Font: Lato + Cairo (Arabic)
   ============================================ */

:root {
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-section: #eef2f7;
    --bg-blue-tint: #e8f1fb;

    --accent: #1E88E5;
    --accent-hover: #1976D2;
    --accent-dark: #1565C0;
    --accent-light: #42a5f5;
    --accent-tint: rgba(30, 136, 229, 0.08);
    --accent-border: rgba(30, 136, 229, 0.25);

    --charcoal: #37474F;
    --text-primary: #2d3a42;
    --text-secondary: #607D8B;
    --text-muted: #90A4AE;
    --text-dark: #1a252d;

    --border: #e0e6ed;
    --border-light: #eef1f5;
    --border-hover: #cfd8dc;

    --success: #43a047;
    --success-bg: rgba(67, 160, 71, 0.08);
    --danger: #e53935;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 14px rgba(30, 136, 229, 0.25);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
    transition: opacity 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input { font-family: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Arabic / RTL */
body.arabic {
    font-family: 'Cairo', 'Lato', sans-serif;
}

body.arabic h1,
body.arabic h2,
body.arabic h3,
body.arabic .product-title,
body.arabic .section-heading,
body.arabic .cta-btn,
body.arabic .form-cta-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

body.lang-switching {
    opacity: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    background: transparent;
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-toggle i {
    font-size: 14px;
    color: var(--accent);
}

.lang-label {
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.3px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 18px 0 10px;
    font-size: 13px;
    color: var(--text-muted);
}

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

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

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.4;
}

.breadcrumb .current {
    color: var(--charcoal);
    font-weight: 600;
}

/* ============================================
   PRODUCT LAYOUT
   ============================================ */
.product-section {
    padding: 0 0 50px;
    background: var(--bg-white);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}

/* ============================================
   PRODUCT GALLERY
   ============================================ */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 24px;
}

.main-image img {
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.main-image:hover img {
    transform: scale(1.03);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumbnail {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-light);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--accent);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info {
    padding-top: 8px;
}

.product-title {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.product-title .checkmark {
    color: var(--accent);
}

/* ============================================
   PACK PRICING
   ============================================ */
.pack-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.pack-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.25s ease;
}

.pack-card:hover {
    border-color: var(--accent-border);
    background: var(--accent-tint);
}

.pack-card.selected {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: 0 0 0 1px var(--accent);
}

.pack-best-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

[dir="rtl"] .pack-best-badge {
    left: 50%;
    right: auto;
}

.pack-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pack-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pack-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.pack-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pack-per-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

.pack-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pack-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.pack-desc {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: end;
}

.pack-qty-circle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-qty-num {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.25s;
}

.pack-card.selected .pack-qty-num {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.pack-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}

.pack-card.selected .pack-radio {
    border-color: var(--accent);
}

.pack-card.selected .pack-radio::after {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
}

.pack-shipping-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-bg);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 3px;
}

.pack-shipping-tag.standard {
    color: var(--accent);
    background: var(--accent-tint);
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.trust-item .trust-label {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-btn {
    width: 100%;
    padding: 15px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn i {
    font-size: 17px;
}

.help-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 55px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.section-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.section-subheading {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-xs);
}

.feature-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--accent-tint);
    border-radius: 10px;
    margin: 0 auto 12px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
    padding: 50px 0;
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 780px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.25s;
}

.advantage-item:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm);
}

.advantage-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-tint);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    color: var(--accent);
}

.advantage-text {
    font-size: 13px;
    color: var(--charcoal);
    font-weight: 500;
    line-height: 1.5;
}

/* ============================================
   INLINE ORDER FORM SECTION
   ============================================ */
.inline-order-section {
    margin-top: 0;
    padding: 18px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.inline-order-header {
    text-align: center;
    margin-bottom: 12px;
}

.inline-order-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.inline-order-header p {
    font-size: 12px;
    color: var(--text-secondary);
}

.inline-order-section .help-text {
    margin-top: 10px;
}

.inline-order-section .order-form {
    gap: 10px;
}

.inline-order-section .form-group input {
    padding: 11px 14px;
}

.inline-order-section .phone-prefix {
    padding: 11px 10px;
}

.inline-order-section .selected-pack-indicator {
    padding: 9px;
    font-size: 13px;
    margin-bottom: 10px;
}

.inline-order-section .order-summary {
    margin-top: 4px;
}

.inline-order-section .summary-row {
    padding: 8px 14px;
    font-size: 13px;
}

.inline-order-section .form-cta-btn {
    margin-top: 4px;
    padding: 14px;
}

/* ============================================
   FORM ELEMENTS (shared)
   ============================================ */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.form-group label::after {
    content: ' *';
    color: #e53935;
    font-weight: 700;
}

.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Phone input with +216 prefix */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.phone-prefix {
    padding: 13px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-right: 1.5px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

[dir="rtl"] .phone-prefix {
    border-right: none;
    border-left: 1.5px solid var(--border);
}

.phone-input-wrapper input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.phone-input-wrapper input:focus {
    box-shadow: none;
}

/* Input with icon */
.input-with-icon {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.input-with-icon i {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.input-with-icon input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.input-with-icon input:focus {
    box-shadow: none;
}

.form-cta-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-blue);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.form-cta-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-price-tag {
    font-weight: 700;
    opacity: 0.9;
}

/* Order Summary */
.order-summary {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-value {
    font-weight: 600;
    color: var(--charcoal);
}

.total-row {
    background: var(--accent-tint);
}

.total-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}

/* Pack Indicator */
.selected-pack-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.selected-pack-indicator i {
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: #c5cdd4;
}

.footer-main {
    padding: 45px 0 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
    display: inline-block;
}

.footer-tagline {
    font-size: 11px;
    color: #90A4AE;
    font-style: italic;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: #90A4AE;
    line-height: 1.7;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13px;
    color: #90A4AE;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links li i {
    color: var(--accent-light);
    margin-inline-end: 6px;
    font-size: 11px;
}

.footer-bottom {
    background: #2c3940;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 12px;
    color: #78909C;
    letter-spacing: 0.3px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 12px;
    color: #78909C;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #fff;
}

/* ============================================
   CONFIRMATION POPUP
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(55, 71, 79, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    transform: translateY(25px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.popup-overlay.active .popup-box {
    transform: translateY(0) scale(1);
}

.popup-x {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.popup-x:hover {
    background: var(--bg-light);
    color: var(--charcoal);
}

.popup-header {
    background: var(--bg-blue-tint);
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.popup-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
}

.popup-body {
    padding: 22px;
    text-align: center;
}

.popup-check {
    width: 46px;
    height: 46px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-blue);
}

.popup-check i {
    color: #fff;
    font-size: 20px;
}

.popup-title {
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.popup-ref {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.popup-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.popup-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-align: start;
}

.popup-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.popup-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.popup-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.popup-product-qty {
    font-size: 12px;
    color: var(--text-muted);
}

.popup-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.popup-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--accent-tint);
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.popup-delivery i {
    font-size: 14px;
}

.popup-close-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-blue);
}

.popup-close-btn:hover {
    background: var(--accent-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 15px;
    }

    .logo-img {
        height: 56px;
    }

    .product-section {
        padding: 0 0 30px;
    }

    .main-image {
        min-height: 260px;
    }

    .main-image img {
        max-height: 300px;
    }

    .thumbnail {
        width: 58px;
        height: 58px;
    }

    .product-title {
        font-size: 20px;
    }

    .pack-price {
        font-size: 20px;
    }

    .cta-btn,
    .form-cta-btn {
        font-size: 15px;
        padding: 13px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 18px 12px;
    }

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

    .section-heading {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .inline-order-section {
        padding: 14px 12px;
    }

    .inline-order-header {
        margin-bottom: 8px;
    }

    .inline-order-header h3 {
        font-size: 16px;
    }

    .inline-order-header p {
        font-size: 11px;
    }

    .inline-order-section .form-row-double {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .inline-order-section .order-form {
        gap: 6px;
    }

    .inline-order-section .form-group label {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .inline-order-section .form-group input {
        padding: 9px 10px;
        font-size: 13px;
    }

    .inline-order-section .phone-prefix {
        padding: 9px 8px;
        font-size: 13px;
    }

    .inline-order-section .selected-pack-indicator {
        padding: 7px 10px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .inline-order-section .form-cta-btn {
        padding: 12px;
        font-size: 15px;
        margin-top: 2px;
    }

    .inline-order-section .summary-row {
        padding: 7px 12px;
        font-size: 12px;
    }

    .inline-order-section .total-value {
        font-size: 16px;
    }

    .inline-order-section .input-with-icon i {
        padding: 0 8px;
        font-size: 13px;
    }

    .inline-order-section .help-text {
        margin-top: 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .pack-card {
        padding: 14px;
    }

    .pack-price {
        font-size: 18px;
    }

    .thumbnail-list {
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 52px;
        height: 52px;
    }
}

/* ============================================
   RTL OVERRIDES
   ============================================ */

/* Text alignment */
[dir="rtl"] body {
    text-align: right;
}

/* Pack cards — labels right, prices left for natural RTL reading */
[dir="rtl"] .pack-right {
    align-items: flex-start;
}

[dir="rtl"] .pack-desc {
    text-align: start;
}

[dir="rtl"] .pack-price-row {
    direction: ltr;
    justify-content: flex-end;
}

/* Shipping tag icon spacing */
[dir="rtl"] .pack-shipping-tag i {
    margin-left: 4px;
    margin-right: 0;
}

/* Trust badges — icon before text in RTL */
[dir="rtl"] .trust-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .trust-item i {
    margin-right: 0;
}

/* Advantage items — icon on right in RTL */
[dir="rtl"] .advantage-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Footer links icon spacing */
[dir="rtl"] .footer-links li i {
    margin-left: 6px;
    margin-right: 0;
}

/* Form inputs */
[dir="rtl"] .form-group input {
    text-align: right;
}

[dir="rtl"] .form-group input::placeholder {
    text-align: right;
}

/* Payment option */
[dir="rtl"] .payment-option {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .payment-label {
    text-align: right;
}

/* Pack indicator */
[dir="rtl"] .selected-pack-indicator {
    flex-direction: row-reverse;
}

/* Breadcrumb */
[dir="rtl"] .breadcrumb {
    text-align: right;
}

/* Popup */
[dir="rtl"] .popup-x {
    right: auto;
    left: 14px;
}

[dir="rtl"] .popup-product {
    flex-direction: row-reverse;
    text-align: right;
}

/* Summary rows */
[dir="rtl"] .summary-row {
    flex-direction: row-reverse;
}

/* Help text */
[dir="rtl"] .help-text {
    text-align: center;
}

/* Footer bottom */
[dir="rtl"] .footer-bottom-inner {
    flex-direction: row-reverse;
}
