/**
 * Ark Paint Configurator - Frontend Styles
 */

form.cart.ark-paint-form, .ark-toggle-buttons {
    font-family: "Figtree", Sans-serif;
}

.ark-paint-configurator { max-width: 100%; margin-bottom: 20px; width: 100%; }
.ark-paint-form { width: 100%; }
.ark-non-paint-form { width: 100%; margin: 0 0 20px; }
.ark-non-paint-add-to-cart { width: 100%; }
.ark-non-paint-add-to-cart-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; max-width: 100%; }
.ark-non-paint-quantity-selector { flex: 0 0 auto; padding: 0; }
.ark-non-paint-form .ark-add-to-cart { display: flex !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; flex: 0 1 auto !important; }
.ark-non-paint-variable-form { width: 100%; margin: 0 0 20px; }
.ark-non-paint-variable-form .variations { width: 100%; margin: 0 0 20px; border: 0; }
.ark-non-paint-variable-form .variations tbody,
.ark-non-paint-variable-form .variations tr,
.ark-non-paint-variable-form .variations td,
.ark-non-paint-variable-form .variations th { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.ark-non-paint-variable-form .variations tr { margin-bottom: 20px; }
.ark-non-paint-variable-form .variations th.label { display: none !important; }
.ark-non-paint-variable-form .variations th.label label,
.ark-non-paint-variable-form .variations th.label .ark-label { display: block; font-size: 14px; font-weight: 400; color: #6b7280; font-family: "Figtree", Sans-serif; text-transform: none; }
.ark-non-paint-variable-form .variations td.value { padding: 0 !important; }
.ark-variation-selector-header { margin-bottom: 12px; width: 100%; }
.ark-variation-selector-header .ark-label { text-transform: capitalize; }
.ark-variation-field { position: relative; width: 100%; }
.ark-variation-native-select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.ark-variation-dropdown { width: 100%; margin-bottom: 0; }
.ark-variation-dropdown .ark-dropdown-selected { width: 100%; }
.ark-variation-dropdown .ark-amount-info { min-width: 0; }
.ark-variation-dropdown .ark-amount-volume { font-weight: 400; }
.ark-variation-dropdown:not(.has-selection) .ark-amount-volume { color: #6b7280; }
.ark-variation-dropdown .ark-dropdown-option.is-disabled { opacity: 0.45; cursor: not-allowed; background: #f8f8fa; }
.ark-non-paint-variable-form .reset_variations { display: none !important; }
.ark-non-paint-variable-form .single_variation_wrap { width: 100%; }
.ark-non-paint-variable-form .woocommerce-variation-price,
.ark-non-paint-variable-form .woocommerce-variation-availability { display: none !important; }
.ark-non-paint-variable-form .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; max-width: 100%; margin: 0; }
.ark-non-paint-variable-form .woocommerce-variation-add-to-cart > .quantity { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; float: none !important; }
.ark-non-paint-variable-form .woocommerce-variation-add-to-cart > .single_add_to_cart_button { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.ark-variable-quantity-shell { padding: 0; }
.ark-variable-quantity-shell .ark-qty-btn { width: 36px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; color: #4a5568 !important; border-radius: 0 !important; min-width: 36px !important; }
.ark-variable-quantity-shell .ark-qty-btn:hover { background: transparent !important; color: #1a1a1a !important; }
.ark-variable-quantity-shell .ark-qty-btn svg { margin: 0 !important; }
.ark-variable-quantity-shell input.qty,
.ark-variable-quantity-shell input.ark-qty-input { width: 40px !important; min-width: 40px !important; text-align: center !important; font-size: 18px !important; font-weight: 500 !important; border: none !important; background: transparent !important; color: #1a1a1a !important; padding: 0 !important; margin: 0 !important; outline: none !important; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; border-radius: 0 !important; }
.ark-variable-quantity-shell input.qty::-webkit-outer-spin-button,
.ark-variable-quantity-shell input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ark-non-paint-variable-form .ark-variable-add-to-cart-button,
.ark-non-paint-variable-form .ark-variable-add-to-cart-button span,
.ark-non-paint-variable-form .ark-variable-add-to-cart-button .woocommerce-Price-amount,
.ark-non-paint-variable-form .ark-variable-add-to-cart-button .woocommerce-Price-amount *,
.ark-non-paint-variable-form .ark-variable-add-to-cart-button bdi { color: #ffffff !important; }

.single-product .elementor-widget-woocommerce-product-add-to-cart:not(:has(form)):not(:has(.cart)):not(:has(button)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.single-product .elementor-widget-woocommerce-product-price {
    display: none !important;
}


.ark-paint-configurator button.ark-add-to-cart,
.ark-paint-configurator .single_add_to_cart_button,
button.ark-add-to-cart.single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    padding: 20px 24px !important;
    background-color: #6267AF !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    border-radius: 25px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
    font-family: "Figtree", Sans-serif !important;
    text-transform: none !important;
}

.ark-paint-configurator button.ark-add-to-cart:hover,
button.ark-add-to-cart.single_add_to_cart_button:hover {
    background-color: #5558a1 !important;
}

.ark-paint-configurator button.ark-add-to-cart.loading,
.ark-paint-configurator button.ark-add-to-cart.added {
    background-color: #4a5568 !important;
    color: white !important;
}

.ark-non-paint-form button.ark-add-to-cart:disabled {
    background-color: #a8acd9 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.ark-non-paint-form .ark-qty-btn:disabled,
.ark-non-paint-form .ark-qty-input:disabled,
.ark-non-paint-variable-form .ark-qty-btn:disabled,
.ark-non-paint-variable-form input.qty:disabled,
.ark-non-paint-variable-form .ark-variable-add-to-cart-button:disabled {
    cursor: not-allowed !important;
    opacity: 0.45;
}

.ark-non-paint-variable-form .ark-variable-add-to-cart-button:disabled {
    background-color: #a8acd9 !important;
    color: #ffffff !important;
    opacity: 0.7;
}

.ark-paint-configurator button.ark-add-to-cart.added {
    background-color: #48bb78 !important;
}

.ark-btn-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ark-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes ark-spin {
    to { transform: rotate(360deg); }
}

button.ark-add-to-cart svg {
    vertical-align: middle;
    margin-right: 8px;
}


/* Mode Toggle */
button.ark-toggle-btn {
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    color: black;
}
.ark-mode-label { display: block; font-size: 14px; color: #6b7280; margin-bottom: 12px; font-family: "Figtree", Sans-serif; font-weight: 400; }
.ark-mode-toggle { margin-bottom: 24px; width: 100%; }
.ark-mode-toggle .ark-label { display: block; font-size: 16px; color: #6b7280; margin-bottom: 12px; font-family: "Figtree", Sans-serif; font-weight: 400; }
.ark-toggle-buttons { display: flex;  overflow: hidden; width: 100%; }
.ark-toggle-btn { font-family: "Figtree", Sans-serif !important; flex: 1; padding: 16px 24px; background: #fff; border: none; font-size: 16px; font-weight: 400; color: #6b7280; cursor: pointer; transition: all 0.2s; }
.ark-toggle-btn:first-child { border-right: 1px solid #e0e0e0; }
.ark-toggle-btn.active { background: #f5f5f8; border-color: #4a5568; color: #1a1a1a; border-radius: 8px;}
.ark-toggle-btn:hover:not(.active) { background: #fafafa; }

/* Sections */
.ark-section { display: none; width: 100%; }
.ark-section.active { display: block; }

/* Selector Header */
.ark-selector-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; width: 100%; }
.ark-type-selector, .ark-amount-selector, .ark-sample-selector { width: 100%; }
.ark-selector-header .ark-label { font-size: 14px; font-weight: 400; color: #6b7280; font-family: "Figtree", Sans-serif; text-transform: none; }
.ark-explore-link { font-size: 14px; color: #6267AF; text-decoration: underline; font-style: normal; }
.ark-explore-link:hover { text-decoration: underline; }

/* Dropdown */
.ark-dropdown { position: relative; margin-bottom: 20px; }
.ark-dropdown-selected { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #fff; border: 2px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: border-color 0.2s; }
.ark-dropdown.open .ark-dropdown-selected, .ark-dropdown-selected:hover { border-color: #4a5568; }
.ark-selected-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.ark-type-label { margin-left: auto; }
.ark-dropdown-arrow { width: 12px; height: 12px; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(45deg); transition: transform 0.2s; margin-left: 12px; }
.ark-dropdown.open .ark-dropdown-arrow { transform: rotate(-135deg); }
.ark-dropdown-options { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 2px solid #4a5568; border-top: none; border-radius: 0 0 8px 8px; z-index: 100; max-height: 300px; overflow-y: auto; }
.ark-dropdown.open .ark-dropdown-options { display: block; }
.ark-dropdown.open .ark-dropdown-selected { border-radius: 8px 8px 0 0; border-bottom-color: transparent; }
.ark-dropdown-option { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; transition: background-color 0.2s; border-bottom: 1px solid #f0f0f0; justify-content: space-between; }
.ark-dropdown-option .ark-type-info, .ark-dropdown-option .ark-amount-info { flex: 1; min-width: 0; }
.ark-dropdown-option .ark-type-label, .ark-dropdown-option .ark-sample-label, .ark-dropdown-option .ark-sample-availability-badge { flex: 0 0 auto; }
.ark-dropdown-option:last-child { border-bottom: none; }
.ark-dropdown-option:hover { background: #f9f9fb; }
.ark-dropdown-option.selected { background: #f5f5f8; }
.ark-sample-dropdown .ark-dropdown-option,
.ark-sample-dropdown .ark-dropdown-selected .ark-selected-content { justify-content: space-between; text-align: left; }
.ark-sample-dropdown .ark-dropdown-option.is-out-of-stock { opacity: 0.55; cursor: not-allowed; background: #f8f8fa; }
.ark-sample-dropdown .ark-dropdown-option.is-out-of-stock:hover { background: #f8f8fa; }
.ark-sample-dropdown .ark-dropdown-option.is-out-of-stock.selected { background: #f8f8fa; }

/* Type Info */
.ark-type-info, .ark-amount-info, .ark-sample-info { display: flex; flex-direction: column; gap: 2px; }
.ark-type-name, .ark-amount-volume, .ark-sample-name { font-size: 16px; font-weight: 500; color: #1a1a1a; font-family: "Figtree", Sans-serif; }
.ark-type-finish, .ark-amount-details, .ark-sample-details { font-size: 14px; color: #6b7280; font-family: "Figtree", Sans-serif; font-weight: 400; }
.ark-type-label, .ark-sample-label, .ark-sample-availability-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; background: #E1DFF0; border: 1px solid #6267AF; border-radius: 4px; font-size: 10px; font-weight: 500; color: #6267AF; text-transform: uppercase; letter-spacing: 0.5px; font-family: "Figtree", Sans-serif; white-space: nowrap; width: fit-content; flex-shrink: 0; }
.ark-sample-label { border-color: #22c55e; color: #22c55e; }
.ark-sample-option-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ark-sample-info { flex: 1; min-width: 0; }
.ark-sample-availability-badge { margin-left: auto; }
.ark-sample-availability-badge.is-in-stock { background: #ecfdf3; border-color: #16a34a; color: #15803d; }
.ark-sample-availability-badge.is-out-of-stock { background: #fef3f2; border-color: #f04438; color: #b42318; }
.ark-sample-dropdown .ark-dropdown-option.is-out-of-stock .ark-sample-availability-badge { background: #fef3f2; border-color: #f04438; color: #b42318; }

/* Amount/Sample Row */
.ark-amount-row, .ark-sample-row { display: flex; gap: 12px; align-items: center; width: 100%; }
.ark-amount-dropdown, .ark-sample-dropdown { flex: 1; min-width: 0; }
.ark-amount-icon, .ark-sample-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #8b8fa8; flex-shrink: 0; }
.ark-amount-icon img, .ark-sample-icon img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.ark-price-per-liter { display: inline-block; padding: 4px 12px; background: #fff; border: 1px solid #22c55e; border-radius: 4px; font-size: 13px; font-weight: 400; color: #22c55e; margin-left: auto; font-family: "Figtree", Sans-serif; }

/* Quantity Selector */
.ark-quantity-selector { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.ark-qty-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #4a5568; padding: 0; transition: color 0.2s; }
.ark-qty-btn:hover { color: #1a1a1a; }
.ark-qty-input { width: 40px; text-align: center; font-size: 18px; font-weight: 500; border: none; background: transparent; color: #1a1a1a; -moz-appearance: textfield; appearance: textfield; }
.ark-qty-input::-webkit-outer-spin-button, .ark-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Summary */
.ark-summary { margin-bottom: 20px; width: 100%; }
.ark-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.ark-summary-label { font-size: 14px; font-weight: 400; color: #6b7280; text-transform: none; letter-spacing: 0; font-family: "Figtree", Sans-serif; }
.ark-summary-value { font-size: 14px; color: #6b7280; font-family: "Figtree", Sans-serif; font-weight: 400; }
.ark-coverage-value { color: #1a1a1a; font-weight: 700; font-family: "Figtree", Sans-serif; }
.ark-calculated-row .ark-summary-label { text-transform: uppercase; font-size: 12px; font-weight: 500; letter-spacing: 0.5px; color: #4a5568; }
.ark-calculated-badge { background: #4a5568; color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: "Figtree", Sans-serif; }
strong.ark-coverage-value { font-weight: 700; color: #2C316B;  }

/* Add to Cart Button (additional styles) */
.ark-btn-separator { opacity: 0.6; }
.ark-btn-price { font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
    .ark-amount-row { align-items: center; }
    .ark-amount-row .ark-amount-dropdown { flex: 1 1 auto; min-width: 0; }
    .ark-amount-row .ark-dropdown { margin-bottom: 0; }
    .ark-amount-row .ark-quantity-selector { flex: 0 0 auto; align-self: center; }
    .ark-sample-row { flex-direction: column; }
    .ark-sample-row .ark-quantity-selector { align-self: flex-end; }
    .ark-sample-dropdown .ark-dropdown-option,
    .ark-sample-dropdown .ark-dropdown-selected .ark-selected-content { align-items: flex-start; }
    .ark-sample-availability-badge { margin-left: 8px; }
    .ark-non-paint-add-to-cart-row { grid-template-columns: 1fr; align-items: stretch; }
    .ark-non-paint-quantity-selector { align-self: flex-end; }
    .ark-non-paint-form .ark-add-to-cart { width: 100% !important; min-width: 100% !important; }
    .ark-non-paint-variable-form .woocommerce-variation-add-to-cart { grid-template-columns: 1fr; align-items: stretch; }
    .ark-non-paint-variable-form .woocommerce-variation-add-to-cart > .quantity { justify-self: end; }
}

@media (max-width: 360px) {
    .ark-amount-row { flex-direction: column; align-items: stretch; }
    .ark-amount-row .ark-dropdown { margin-bottom: 0; }
    .ark-amount-row .ark-quantity-selector { width: 100%; align-self: stretch; justify-content: space-between; padding: 0; }
}

/* Modal - Slide in from right */
.ark-modal { display: flex; position: fixed; top: 0 !important; left: 0; right: 0; bottom: 0; z-index: 9999999 !important; align-items: flex-start; justify-content: flex-end; visibility: hidden; }
.ark-modal.open { visibility: visible; }
body.ark-modal-open { overflow: hidden; }
body > .ark-modal { --z-index: 9999999 !important; z-index: 9999999 !important; }
.ark-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s ease; }
.ark-modal.open .ark-modal-overlay { opacity: 1; }
.ark-modal-container { position: relative; width: 100%; max-width: 420px; height: calc(100vh - 60px); background: #fff; border-radius: 16px 0 0 0; overflow: hidden; display: flex; flex-direction: column; margin: 140px 0 0 0; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); transform: translateX(100%); transition: transform 0.3s ease; }
.ark-modal.open .ark-modal-container { transform: translateX(0); }
.ark-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; border-bottom: 1px solid #f0f0f0; }
.ark-modal-title { font-size: 20px; font-weight: 600; color: #1a1a1a; margin: 0; }
.ark-modal-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #f5f5f8; border: none; border-radius: 50%; cursor: pointer; color: #666; transition: all 0.2s; }
.ark-modal-close:hover { background: #e5e5e8; color: #333; }
.ark-modal-body { padding: 16px 24px 24px; overflow-y: auto; }

/* Modal Cards */
.ark-modal-card { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px; background: #f8f9fc; border: none; border-left: 3px solid #6267AF; border-radius: 8px; margin-bottom: 16px; cursor: pointer; transition: all 0.2s; }
.ark-modal-card:last-child { margin-bottom: 0; }
.ark-modal-card:hover { background: #f0f2f8; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.ark-modal-card.is-out-of-stock { opacity: 0.6; cursor: not-allowed; }
.ark-modal-card.is-out-of-stock:hover { background: #f8f9fc; box-shadow: none; }
.ark-modal-card-content { flex: 1; padding-right: 16px; }
.ark-modal-card-title { font-size: 18px; font-weight: 700; color: #6267AF; margin: 0 0 6px; font-family: "Figtree", Sans-serif; }
.ark-modal-card-subtitle { font-size: 12px; color: #6b7280; margin: 0 0 12px; font-family: "Figtree", Sans-serif; }
.ark-modal-card-description { font-size: 14px; color: #374151; line-height: 1.6; margin: 0 0 12px; font-family: "Figtree", Sans-serif; }
.ark-learn-more { color: #6267AF; font-weight: 400; text-decoration: underline; }
.ark-learn-more:hover { color: #4a4e8c; }

/* Modal Rating */
.ark-modal-card-rating { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ark-modal-card-rating-left { display: flex; align-items: center; gap: 8px; }
.ark-stars { display: flex; gap: 1px; }
.ark-rating-score { font-size: 14px; font-weight: 600; color: #1f2937; }
.ark-reviews-count { font-size: 13px; color: #6267AF; text-decoration: underline; margin-left: auto; }
.ark-reviews-count:hover { color: #4a4e8c; }

/* Modal Card Icon */
.ark-modal-card-icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #e8eaf3; border-radius: 8px; padding: 8px; }
.ark-modal-card-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Modal Responsive */
@media (max-width: 600px) {
    .ark-modal-container { max-width: 100%; }
    .ark-modal-header { padding: 16px 16px 12px; }
    .ark-modal-body { padding: 12px 16px 16px; }
    .ark-modal-card { padding: 16px; }
    .ark-modal-card-title { font-size: 16px; }
}

/* Quick Calculator Modal */
.ark-calculator-modal { z-index: 999999 !important; }
.ark-calculator-modal .ark-modal-overlay { z-index: 999998 !important; background: rgba(0, 0, 0, 0.5); }
.ark-calculator-modal .ark-calculator-container { max-width: 600px; border-radius: 16px 0 0 0; max-height: calc(100vh - 120px); height: calc(100vh - 120px); margin: 0; margin-left: auto; margin-top: 120px; display: flex; flex-direction: column; z-index: 999999 !important; position: relative; overflow: hidden; }
.ark-calculator-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #6267AF; color: #fff; }
.ark-calculator-title { display: flex; align-items: center; gap: 8px; }
.ark-calculator-title h2 { font-size: 20px; font-weight: 600; margin: 0; color: #fff; }
.ark-calculator-help { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 0; display: flex; }
.ark-calculator-help:hover { color: #fff; }

/* Calculator Tooltip */
.ark-tooltip-wrapper { position: relative; display: inline-flex; }
.ark-tooltip { position: absolute; top: calc(100% + 12px); left: -8px; width: 320px; background: #fce4ec; border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); z-index: 10; display: none; opacity: 0; transition: opacity 0.2s ease; flex-direction: row; align-items: flex-start; gap: 10px; }
.ark-tooltip.active { display: flex; opacity: 1; }
@media (hover: hover) { .ark-tooltip-wrapper:hover .ark-tooltip { display: flex; opacity: 1; } }
.ark-tooltip::before { content: ''; position: absolute; top: -8px; left: 20px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #fce4ec; }
.ark-tooltip p { font-size: 13px; line-height: 1.5; color: #1a1a1a; margin: 0; flex: 1; font-weight: 400; }
.ark-tooltip-close { flex-shrink: 0; background: none; border: none; font-size: 16px; color: #9ca3af; cursor: pointer; padding: 0; line-height: 1; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; align-self: flex-start; }
.ark-tooltip-close:hover { color: #374151; }

.ark-calculator-close { display: flex; align-items: center; gap: 6px; background: none !important; border: none !important; color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; padding: 0 !important; margin: 0; line-height: 1; }
.ark-close-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px !important; height: 20px !important; min-width: 20px; min-height: 20px; max-width: 20px; max-height: 20px; background: rgba(255,255,255,0.3) !important; border-radius: 50% !important; flex-shrink: 0; line-height: 0; }
.ark-close-icon svg { width: 10px !important; height: 10px !important; display: block; }
.ark-calculator-close:hover { opacity: 0.8; }

.ark-calculator-summary { background: #6267AF; padding: 0 20px 16px; }
.ark-calculator-result { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ark-calculator-result:last-child { border-bottom: none; }
.ark-result-label { font-size: 14px; color: rgba(255,255,255,0.8); }
.ark-result-value { font-size: 14px; font-weight: 500; color: #fff; }
.ark-coats-selector select { background: transparent; border: none; color: #fff; font-size: 14px; cursor: pointer; padding-right: 16px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.ark-coats-selector select option { color: #333; }

.ark-calculator-body { flex: 1; padding: 20px; overflow-y: auto; background: #f5f5f8; }
.ark-calculator-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ark-calculator-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.ark-calculator-card:hover { border-color: #3b3d6e; box-shadow: 0 2px 8px rgba(59,61,110,0.15); }
.ark-card-content h3 { font-size: 16px; font-weight: 500; color: #1a1a1a; margin: 0 0 4px; }
.ark-card-content p { font-size: 13px; color: #888; margin: 0; }
.ark-card-add-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #3b3d6e; cursor: pointer; }

.ark-calculator-items { display: flex; flex-direction: column; gap: 12px; }
.ark-calculator-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; }
.ark-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ark-item-title { font-size: 14px; font-weight: 600; color: #3b3d6e; text-transform: uppercase; letter-spacing: 0.5px; }
.ark-item-remove { background: none; border: none; color: #999; cursor: pointer; padding: 0; }
.ark-item-remove:hover { color: #dc3232; }
.ark-item-fields { display: flex; gap: 12px; margin-bottom: 12px; }
.ark-field-group { flex: 1; }
.ark-field-group label { display: block; }
.ark-field-group .ark-field-label { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
.ark-input-unit { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.ark-input-unit input { flex: 1; border: none; padding: 10px 12px; font-size: 14px; width: 100%; }
.ark-input-unit input:focus { outline: none; }
.ark-input-unit span { padding: 10px 12px; background: #f5f5f8; color: #666; font-size: 14px; border-left: 1px solid #e0e0e0; }
.ark-item-result { text-align: right; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.ark-item-area { font-size: 16px; font-weight: 600; color: #3b3d6e; }

.ark-calculator-footer { padding: 16px 20px; background: #fff; border-top: 1px solid #e0e0e0; }
.ark-calculator-tip { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f9f9fb; border-radius: 8px; }
.ark-tip-icon { width: 64px; height: 32px; flex-shrink: 0; display: flex; align-items: center; }
.ark-tip-icon img { width: 100%; height: auto; display: block; }
.ark-calculator-tip p { flex: 1; font-size: 13px; color: #666; margin: 0; }
.ark-tip-close { background: none; border: none; color: #999; cursor: pointer; padding: 0; }
.ark-calculator-tip.hidden { display: none; }

.ark-calculator-actions { padding: 16px 20px; background: #fff; }
.ark-calculator-apply-btn { width: 100%; padding: 16px; background: #6267AF; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; transition: background 0.2s; }
.ark-calculator-apply-btn:hover { background: #5558a1; }

@media (max-width: 600px) {
    .ark-calculator-modal .ark-calculator-container { max-width: 100%; }
    .ark-calculator-cards { grid-template-columns: 1fr; }
    .ark-item-fields { flex-wrap: wrap; }
    .ark-field-group { min-width: calc(50% - 6px); }
}

/* =============================================
   Shortcode: [ark_sample_button]
   ============================================= */
.ark-sample-btn-wrap { position: relative; display: inline-block; z-index: 50; --ark-sample-popup-width: max-content; }

.ark-sample-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: none; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: transform .2s, box-shadow .2s;
    color: #9ca3af;
}
.ark-sample-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(0,0,0,.16); color: #6b7280; }
.ark-sample-btn:active { transform: scale(.96); }
/* Rotate + to × when open */
.ark-sample-btn-wrap.open .ark-sample-btn { transform: rotate(45deg); }
.ark-sample-btn-wrap.open .ark-sample-btn:hover { transform: rotate(45deg) scale(1.08); }

/* Tooltip */
.ark-sample-btn-tooltip {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    background: #fff; color: #1f2937; font-size: 13px; font-weight: 500;
    white-space: nowrap; padding: 8px 14px; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    opacity: 0 !important; pointer-events: none; transition: opacity .2s;
}
.ark-sample-btn-tooltip::after {
    content: ''; position: absolute; top: 100%; right: 14px;
    border: 6px solid transparent; border-top-color: #fff;
}
.ark-sample-btn-wrap:hover .ark-sample-btn-tooltip,
.ark-sample-btn:focus ~ .ark-sample-btn-tooltip { opacity: 1 !important; }
.ark-sample-btn-wrap.open .ark-sample-btn-tooltip { opacity: 0 !important; }

/* Popup — compact stacked pill buttons (Tint-style) */
.ark-sample-btn-popup {
    position: absolute; bottom: calc(100% + 6px); right: 0;
    display: flex; flex-direction: column; gap: 6px;
    align-items: flex-end; width: auto; max-width: min(var(--ark-sample-popup-width), calc(100vw - 24px));
    opacity: 0 !important; pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}
.ark-sample-btn-wrap.open .ark-sample-btn-popup {
    opacity: 1 !important; pointer-events: auto !important; transform: translateY(0);
}

/* Hide the old header — not needed in pill mode */
.ark-sample-btn-popup-header { display: none; }
.ark-sample-btn-popup-close { display: none; }

/* The list is just a flex column of pill buttons */
.ark-sample-btn-popup-list {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0; width: auto; max-width: 100%; min-width: 0;
}

/* Each sample item = compact pill button */
.ark-sample-btn-popup-item {
    display: flex; align-items: center; justify-content: flex-end; gap: 0; width: auto; max-width: 100%;
    min-height: 0; padding: 3px 8px; background: #fff; border: none; border-radius: 8px;
    cursor: pointer; text-align: right; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .15s, box-shadow .15s;
    font-family: "Figtree", sans-serif; box-sizing: border-box;
}
.ark-sample-btn-popup-item:hover { background: #f9fafb; box-shadow: 0 3px 12px rgba(0,0,0,.16); }
.ark-sample-btn-popup-item.loading { opacity: .55; pointer-events: none; }
.ark-sample-btn-popup-item.is-out-of-stock { opacity: .55; cursor: not-allowed; background: #f9fafb; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ark-sample-btn-popup-item.is-out-of-stock:hover { background: #f9fafb; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Hide icon and + button in pill mode */
.ark-sample-btn-popup-item-icon { display: none; }
.ark-sample-btn-popup-item-add { display: none; }

/* Info becomes the full pill content */
.ark-sample-btn-popup-item-info {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}
.ark-sample-btn-popup-item-name {
    display: block;
    font-size: 13px; font-weight: 600; line-height: 1.2; color: #1f2937;
    text-align: right;
    overflow: hidden; text-overflow: ellipsis;
}
.ark-sample-btn-popup-item-badge {
    display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
    background: #d1fae5; color: #065f46; padding: 1px 6px; border-radius: 4px;
    margin-left: 6px; vertical-align: middle;
}
.ark-sample-btn-popup-item-meta { display: none; }

/* Feedback toast — inline pill style */
.ark-sample-btn-popup-feedback {
    display: flex; align-items: center; gap: 6px; justify-content: center;
    padding: 6px 14px; background: #ecfdf5; color: #065f46;
    font-size: 12px; font-weight: 500; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    animation: arkFeedbackSlide .3s ease;
    white-space: nowrap; width: auto; max-width: 100%; box-sizing: border-box;
}
.ark-sample-btn-popup-feedback svg { flex-shrink: 0; color: #10b981; }

/* =============================================
   Shortcode: [ark_cart]
   ============================================= */

/* Wrapper - Two Column Layout */
.ark-cart-wrapper {
    display: flex; gap: 40px; max-width: 1200px; margin: 0 auto;
    font-family: "Figtree", Sans-serif; padding: 0 16px;
}
.ark-cart-main { flex: 0 0 calc(65% - 20px); min-width: 0; }
.ark-cart-sidebar { flex: 0 0 calc(35% - 20px); min-width: 0; }

/* Page Title */
.ark-cart-header { margin-bottom: 32px; }
.ark-cart-title {
    font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 0;
    font-family: "Figtree", Sans-serif; line-height: 1.3;
}
.ark-cart-count {
    font-weight: 400; color: #9ca3af; font-size: 18px;
}

/* ── Upsell Carousel ── */
.ark-cart-upsell {
    border: 1px solid #e5e7eb; border-radius: 14px; margin-top: 24px; margin-bottom: 0;
    overflow: hidden; background: #fafafa;
}
.ark-cart-upsell-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 18px 20px; background: transparent; border: none;
    cursor: pointer; font-size: 16px; font-weight: 600; color: #1a1a1a;
    font-family: "Figtree", Sans-serif;
}
.ark-cart-upsell-toggle svg {
    transition: transform 0.25s ease; color: #9ca3af;
}
.ark-cart-upsell.collapsed .ark-cart-upsell-toggle svg {
    transform: rotate(180deg);
}
.ark-cart-upsell-content {
    padding: 0 20px 20px; transition: max-height 0.3s ease;
}
.ark-cart-upsell.collapsed .ark-cart-upsell-content {
    display: none;
}
.ark-cart-upsell-scroll {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
}
.ark-cart-upsell-scroll::-webkit-scrollbar { display: none; }
.ark-cart-upsell-item {
    flex: 0 0 150px; text-align: center;
}
.ark-cart-upsell-img {
    width: 100%; height: 110px; object-fit: contain; border-radius: 10px;
    background: #fff; margin-bottom: 8px; border: 1px solid #f0f0f0;
}
.ark-cart-upsell-name {
    display: block; font-size: 13px; color: #1a1a1a; margin-bottom: 8px;
    font-weight: 500; line-height: 1.3; min-height: 34px;
}
.ark-cart-upsell-add {
    display: inline-block; padding: 8px 16px; background: #4a5568; color: #fff;
    border: none; border-radius: 20px; font-size: 12px; cursor: pointer;
    font-family: "Figtree", Sans-serif; transition: background 0.2s;
    white-space: nowrap; font-weight: 500;
}
.ark-cart-upsell-add:hover { background: #374151; }
.ark-cart-upsell-add.loading { opacity: 0.5; pointer-events: none; }

/* ── Cart Items ── */
.ark-cart-items { display: flex; flex-direction: column; }
.ark-cart-item {
    display: flex; gap: 16px; padding: 24px 0;
    border-bottom: 1px solid #e5e7eb; align-items: flex-start;
    transition: opacity 0.3s;
}
.ark-cart-item:first-child { border-top: 1px solid #e5e7eb; }
.ark-cart-item.updating { opacity: 0.4; pointer-events: none; }

/* Item Image */
.ark-cart-item-image { flex: 0 0 100px; }
.ark-cart-item-image a { display: block; }
.ark-cart-item-image img {
    width: 100px; height: 100px; object-fit: cover; border-radius: 10px;
    background: #f5f5f8; display: block;
}

/* Item Details */
.ark-cart-item-details { flex: 1; min-width: 0; }
.ark-cart-item-name {
    display: block; font-size: 16px; font-weight: 600; color: #1a1a1a;
    text-decoration: none; margin-bottom: 2px;
    font-family: "Figtree", Sans-serif; line-height: 1.4;
}
.ark-cart-item-name:hover { color: #6267AF; }
.ark-cart-item-meta { margin-bottom: 14px; }
.ark-cart-item-type,
.ark-cart-item-volume {
    display: block; font-size: 14px; color: #6b7280;
    font-family: "Figtree", Sans-serif; line-height: 1.5;
}

/* Item End (Price + Remove) */
.ark-cart-item-end {
    flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: flex-end; gap: 12px; padding-top: 2px;
}

/* Quantity Controls */
.ark-cart-item-actions { display: flex; align-items: center; gap: 16px; }
.ark-cart-item-qty { display: flex; align-items: center; gap: 0; }
.ark-cart-qty-btn {
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; background: #fff; border: 1.5px solid #d1d5db;
    border-radius: 50%; cursor: pointer; color: #4a5568;
    transition: all 0.15s; padding: 0;
}
.ark-cart-qty-btn:hover { border-color: #4a5568; color: #1a1a1a; }
.ark-cart-qty-input {
    width: 40px; text-align: center; border: none; background: transparent;
    font-size: 15px; font-weight: 600; color: #1a1a1a;
    -moz-appearance: textfield; font-family: "Figtree", Sans-serif;
}
.ark-cart-qty-input::-webkit-outer-spin-button,
.ark-cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Remove Link */
.ark-cart-item-remove {
    font-size: 13px; color: #9ca3af; text-decoration: underline;
    cursor: pointer; background: none; border: none; padding: 0;
    font-family: "Figtree", Sans-serif; transition: color 0.15s;
}
.ark-cart-item-remove:hover { color: #ef4444; }

/* Item Price */
.ark-cart-item-price {
    font-size: 16px; font-weight: 600; color: #1a1a1a;
    text-align: right; font-family: "Figtree", Sans-serif; white-space: nowrap;
}

/* ── Sidebar ── */
.ark-cart-sidebar-inner {
    position: sticky; top: 100px; background: #fafafa;
    border-radius: 14px; padding: 24px; border: 1px solid #e5e7eb;
}

/* Order Note */
.ark-cart-note { margin-bottom: 20px; }
.ark-cart-note-label {
    display: block; font-size: 14px; font-weight: 600; color: #1a1a1a;
    margin-bottom: 8px; font-family: "Figtree", Sans-serif;
}
.ark-cart-note-textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #d1d5db; border-radius: 10px;
    font-size: 14px; resize: vertical; font-family: "Figtree", Sans-serif;
    min-height: 80px; background: #fff; color: #1a1a1a;
    box-sizing: border-box; transition: border-color 0.15s;
}
.ark-cart-note-textarea:focus { outline: none; border-color: #6267AF; }
.ark-cart-note-textarea::placeholder { color: #9ca3af; }

/* Delivery Badge */
.ark-cart-delivery-badge {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    background: #ecfdf5; border-radius: 10px; margin-bottom: 20px;
    font-size: 12px; font-weight: 700; color: #065f46; letter-spacing: 0.02em;
    font-family: "Figtree", Sans-serif;
}
.ark-cart-delivery-badge svg { flex-shrink: 0; color: #10b981; }

/* Totals */
.ark-cart-totals { margin-bottom: 20px; }
.ark-cart-totals-row {
    display: flex; justify-content: space-between; padding: 10px 0;
    font-size: 14px; color: #6b7280; font-family: "Figtree", Sans-serif;
}
.ark-cart-shipping-cost { font-size: 13px; color: #9ca3af; }
.ark-cart-subtotal-row {
    border-top: 1.5px solid #d1d5db; padding-top: 16px; margin-top: 4px;
    font-size: 20px; font-weight: 700; color: #1a1a1a;
}

/* Checkout Button */
.ark-cart-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px 24px;
    background: #4a5568; color: #fff; border: none; border-radius: 50px;
    font-size: 16px; font-weight: 600; text-align: center;
    text-decoration: none; cursor: pointer;
    font-family: "Figtree", Sans-serif; transition: background 0.2s;
    box-sizing: border-box;
}
.ark-cart-checkout-btn:hover { background: #374151; color: #fff; }
.ark-cart-checkout-btn svg { flex-shrink: 0; }

/* ── Empty Cart ── */
.ark-cart-empty {
    text-align: center; padding: 80px 20px; max-width: 400px; margin: 0 auto;
    font-family: "Figtree", Sans-serif;
}
.ark-cart-empty-icon { margin-bottom: 20px; color: #d1d5db; }
.ark-cart-empty h2 {
    font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px;
}
.ark-cart-empty p {
    color: #6b7280; margin: 0 0 28px; font-size: 15px; line-height: 1.5;
}
.ark-cart-empty-btn {
    display: inline-block; padding: 14px 36px; background: #6267AF;
    color: #fff; border-radius: 50px; text-decoration: none;
    font-size: 15px; font-weight: 600; transition: background 0.2s;
}
.ark-cart-empty-btn:hover { background: #5558a1; color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ark-cart-wrapper { flex-direction: column; gap: 24px; padding: 0 12px; }
    .ark-cart-main,
    .ark-cart-sidebar { flex: 1 1 100%; }
    .ark-cart-sidebar-inner { position: static; }
    .ark-cart-title { font-size: 22px; }
    .ark-cart-count { font-size: 15px; }
    .ark-cart-item { gap: 12px; }
    .ark-cart-item-image { flex: 0 0 80px; }
    .ark-cart-item-image img { width: 80px; height: 80px; }
    .ark-cart-item-name { font-size: 15px; }
    .ark-cart-upsell-item { flex: 0 0 130px; }
}

/* Paint Tab Shortcodes (data only, no accordion) */
.ark-tab-section { width: 100%; }
.ark-tab-grid--list { display: flex; flex-direction: column; }
.ark-tab-grid--list .ark-tab-item { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 8px 0; align-items: baseline; }
.ark-tab-grid--list .ark-tab-item-label { font-size: 15px; font-weight: 700; color: #1a1a1a; font-family: "Figtree", Sans-serif; }
.ark-tab-grid--list .ark-tab-item-value { font-size: 15px; font-weight: 400; color: #6b7280; font-family: "Figtree", Sans-serif; line-height: 1.7; }

/* Paint Types Accordion */
.ark-paint-types-accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ark-paint-types-accordion-item {
    border-bottom: 1px solid #d7dce8;
    background: transparent;
}

.ark-paint-types-accordion-item:last-child {
    border-bottom: none;
}

.ark-paint-types-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 8px;
    border: none;
    background: transparent;
    color: #3f63b8;
    cursor: pointer;
    text-align: left;
    font-family: "Figtree", Sans-serif;
}

.ark-paint-types-accordion-trigger-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.ark-paint-types-accordion-trigger-summary {
    display: block;
    width: 100%;
}

.ark-paint-types-accordion-trigger--reviews {
    align-items: flex-start;
}

.ark-paint-types-accordion-trigger--reviews .ark-paint-types-accordion-icon {
    margin-top: 10px;
}

.ark-paint-types-accordion-trigger--reviews[aria-expanded="true"] .ark-paint-types-accordion-icon {
    margin-top: 14px;
}

.ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__summary {
    margin: 0;
}

.ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__summary--header {
    gap: 24px;
}

.ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__stars {
    font-size: 20px;
}

.ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__score {
    font-size: 1.2rem;
}

.ark-paint-types-accordion-trigger:hover {
    background: transparent;
}

.ark-paint-types-accordion-title {
    font-family: "Figtree", Sans-serif;
    font-weight: 500;
    line-height: 25px;
    font-size: 18px;
}

.ark-paint-types-accordion-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 2px solid #3f63b8;
    border-bottom: 2px solid #3f63b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.ark-paint-types-accordion-trigger[aria-expanded="true"] .ark-paint-types-accordion-icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.ark-paint-types-accordion-panel {
    padding: 0 8px 24px;
}

.ark-paint-types-accordion-panel .ark-tab-section {
    padding-top: 4px;
}

.ark-non-paint-accordion-content {
    padding-top: 4px;
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    font-family: "Figtree", Sans-serif;
    line-height: 1.7;
}

.ark-non-paint-accordion-content > *:first-child {
    margin-top: 0;
}

.ark-non-paint-accordion-content > *:last-child {
    margin-bottom: 0;
}

.ark-non-paint-accordion-content .ark-tab-section--non-paint-details {
    padding-top: 8px;
}

.ark-fbt-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    padding-top: 4px;
}

.ark-fbt-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border: 1px solid #e7dff2;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
}

.ark-fbt-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #faf9fc;
    padding: 18px;
    border-bottom: 1px solid #f0e9f6;
}

.ark-fbt-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ark-fbt-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 12px;
    padding: 14px 16px 16px;
}

.ark-fbt-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ark-fbt-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid #dbe7ff;
    border-radius: 6px;
    background: #f7fbff;
    color: #5370a6;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: "Figtree", Sans-serif;
}

.ark-fbt-product-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.ark-fbt-product-name {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    font-family: "Figtree", Sans-serif;
}

.ark-fbt-product-name:hover {
    color: #3f63b8;
}

.ark-fbt-product-price {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    font-family: "Figtree", Sans-serif;
}

.ark-fbt-product-description {
    flex: 1 1 auto;
    margin: 0;
    color: #7a8191;
    font-size: 13px;
    line-height: 1.55;
    font-family: "Figtree", Sans-serif;
}

.ark-fbt-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 12px 16px;
    border: 2px solid #2b3f80;
    background: #fff;
    color: #1b2f6b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-family: "Figtree", Sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ark-fbt-product-cta:hover {
    background: #2b3f80;
    color: #fff;
    border-color: #2b3f80;
}

.ark-fbt-product-price ins {
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
}

.ark-fbt-product-price del {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .ark-tab-grid--list .ark-tab-item { grid-template-columns: 1fr; gap: 4px; }
    .ark-paint-types-accordion-trigger { padding: 18px 4px; }
    .ark-paint-types-accordion-panel { padding: 0 4px 20px; }
    .ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__summary--header { gap: 12px; }
    .ark-paint-types-accordion-trigger-summary .ark-kiyoh-accordion-reviews__count { white-space: normal; text-align: left; }
    .ark-fbt-products { grid-template-columns: 1fr; }
    .ark-fbt-product-head { grid-template-columns: 1fr; }
    .ark-fbt-product-price { text-align: left; }
}
