/* ============================================================
   RESTORIA E-COMMERCE CUSTOM STYLES
   Matches Restoria's elegant restaurant design language.
   All colors reference Restoria's CSS custom properties.
   ============================================================ */

/* ── Typography Imports ─────────────────────────────────────── */
/* Restoria uses Urbanist (body) + Fraunces (heading) via theme options.
   These are already loaded by the parent theme. */

/* ============================================================
   1. PRODUCT CARD GRID
   ============================================================ */

.ec-product-grid {
    padding: 60px 0;
}

.ec-product-grid .title-box.centered {
    margin-bottom: 40px;
}

.ec-product-grid .title-box .subtitle span {
    font-family: var(--heading-font, 'Fraunces'), serif;
    color: var(--primary-color);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ec-product-grid .title-box h2 {
    font-family: var(--heading-font, 'Fraunces'), serif;
    color: var(--heading-color, #222222);
    font-size: var(--tc-h2-font-size, 48px);
    font-weight: 600;
    margin-top: 10px;
}

/* ============================================================
   2. PRODUCT CARD — Restoria Style
   ============================================================ */

.ec-product-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
}

.ec-product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* ── Card Image ──────────────────────────────────────────── */

.ec-product-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.ec-product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* ── Badges (Sale, New, Featured) ────────────────────────── */

.ec-product-card .card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

[dir="rtl"] .ec-product-card .card-badges {
    left: auto;
    right: 15px;
}

.ec-product-card .card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: 1.4;
}

.ec-product-card .card-badge--sale {
    background: #e74c3c;
    color: #ffffff;
}

.ec-product-card .card-badge--new {
    background: var(--primary-color);
    color: #ffffff;
}

.ec-product-card .card-badge--featured {
    background: var(--secondary-color, #1e1e1e);
    color: #ffffff;
}

/* ── Quick Actions Overlay ───────────────────────────────── */

.ec-product-card .card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.ec-product-card:hover .card-actions {
    transform: translateY(0);
}

.ec-product-card .card-action-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: var(--secondary-color, #1e1e1e);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.ec-product-card .card-action-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ── Card Content ────────────────────────────────────────── */

.ec-product-card .card-content {
    padding: 20px 24px 24px;
}

.ec-product-card .card-category {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.ec-product-card .card-title {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color, #222222);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.ec-product-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-product-card .card-title a:hover {
    color: var(--primary-color);
}

.ec-product-card .card-description {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 14px;
    color: var(--text-color, #666666);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Price Styling ───────────────────────────────────────── */

.ec-product-card .card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ec-product-card .card-price .current-price {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.ec-product-card .card-price .original-price {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 15px;
    color: var(--text-color, #666666);
    text-decoration: line-through;
}

.ec-product-card .card-price .discount-percent {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Dietary Badges on Card */
.ec-product-card .card-dietary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ec-product-card .card-dietary .dietary-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid var(--border-color, #e8e8e8);
    color: var(--text-color, #666666);
    background: #fafafa;
}

.ec-product-card .card-dietary .dietary-icon.veg {
    border-color: #27ae60;
    color: #27ae60;
}

.ec-product-card .card-dietary .dietary-icon.vegan {
    border-color: #2ecc71;
    color: #2ecc71;
}

.ec-product-card .card-dietary .dietary-icon.gf {
    border-color: #f39c12;
    color: #f39c12;
}

/* ── Add to Cart Button — Restoria btn-style-one Pattern ─── */

.ec-product-card .btn-add-cart {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 0;
    text-decoration: none;
    line-height: 1.5;
}

.ec-product-card .btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.ec-product-card .btn-add-cart:hover {
    color: #ffffff;
    border-color: var(--primary-color);
}

.ec-product-card .btn-add-cart:hover::before {
    left: 0;
}

.ec-product-card .btn-add-cart i {
    margin-right: 8px;
}

[dir="rtl"] .ec-product-card .btn-add-cart i {
    margin-right: 0;
    margin-left: 8px;
}

/* ============================================================
   3. CART ICON — Header Integration
   Matches Restoria's .links-box pattern
   ============================================================ */

.ec-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
}

.ec-cart-link .cart-icon {
    font-size: 20px;
    color: var(--header-text-color, #ffffff);
    transition: color 0.3s ease;
}

.ec-cart-link:hover .cart-icon {
    color: var(--primary-color);
}

.ec-cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: 6px;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

[dir="rtl"] .ec-cart-link .cart-count {
    right: auto;
    left: 6px;
}

/* ============================================================
   4. MINI-CART / CART SIDEBAR
   Uses Restoria's hidden-bar slide-in panel pattern
   ============================================================ */

.ec-mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ec-mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ec-mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    /* background: var(--secondary-color, var(--color-two, #1e1e1e)) !important; */
    /* color: var(--header-text-color, #ffffff) !important; */
    z-index: 9999;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .ec-mini-cart {
    right: auto;
    left: -400px;
    transition: left 0.4s ease;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
}

.ec-mini-cart.active {
    right: 0;
}

[dir="rtl"] .ec-mini-cart.active {
    left: 0;
}

/* ── Mini-Cart Header ────────────────────────────────────── */

.ec-mini-cart .mini-cart-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ec-mini-cart .mini-cart-header h3 {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color, var(--main-color, var(--primary-color))) !important;
    margin: 0;
}

.ec-mini-cart .mini-cart-header .cart-count-total {
    font-size: 14px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    color: var(--text-color, #666666);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
}

.ec-mini-cart .mini-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color, #666666);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.ec-mini-cart .mini-cart-close:hover {
    color: var(--heading-color, #222222);
}

/* ── Mini-Cart Items ─────────────────────────────────────── */

.ec-mini-cart .mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 28px;
}

.ec-mini-cart .mini-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    align-items: flex-start;
}

.ec-mini-cart .mini-cart-item:last-child {
    border-bottom: none;
}

.ec-mini-cart .mini-cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.ec-mini-cart .mini-cart-item-info {
    flex: 1;
    min-width: 0;
}

.ec-mini-cart .mini-cart-item-name {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text-color, #ffffff);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-mini-cart .mini-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.ec-mini-cart .mini-cart-item-name a:hover {
    color: var(--primary-color);
}

.ec-mini-cart .mini-cart-item-qty {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    color: var(--text-color, #666666);
}

.ec-mini-cart .mini-cart-item-price {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--header-text-color);
    margin-top: 4px;
}

.ec-mini-cart .mini-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-color, #666666);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.ec-mini-cart .mini-cart-item-remove:hover {
    color: #e74c3c;
}

.item-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 4px;
    overflow: hidden;
}

.item-quantity .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    
    color: var(--heading-color, #222222);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.item-quantity .qty-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.item-quantity .qty-input {
    width: 50px !important;
    height: 32px !important;
    border: none !important;
    border-left: 1px solid var(--border-color, #e8e8e8) !important;
    border-right: 1px solid var(--border-color, #e8e8e8) !important;
    text-align: center !important;
    font-family: var(--primary-font, 'Urbanist'), sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Quantity Controls (Mini-Cart Version) ─────────────────── */

.ec-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 4px;
    overflow: hidden;
}

.ec-qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f8f8;
    color: var(--heading-color, #222222);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ec-qty-control button:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.ec-qty-control input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color, #e8e8e8);
    border-right: 1px solid var(--border-color, #e8e8e8);
    text-align: center;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color, #222222);
    -moz-appearance: textfield;
}

.ec-qty-control input::-webkit-inner-spin-button,
.ec-qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Empty Cart Message ──────────────────────────────────── */

.ec-mini-cart .mini-cart-empty {
    text-align: center;
    padding: 60px 28px;
}

.ec-mini-cart .mini-cart-empty i {
    font-size: 48px;
    color: var(--border-color, #e8e8e8);
    margin-bottom: 16px;
    display: block;
}

.ec-mini-cart .mini-cart-empty p {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 16px;
    color: var(--text-color, #666666);
}

/* ── Mini-Cart Footer ────────────────────────────────────── */

.ec-mini-cart .mini-cart-footer {
    padding: 20px 28px 28px;
    /* background: rgba(0, 0, 0, 0.25) !important; */
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
}

.ec-mini-cart .mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ec-mini-cart .mini-cart-subtotal span:first-child {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--header-text-color, #ffffff) !important;
    opacity: 0.8;
}

.ec-mini-cart .mini-cart-subtotal span:last-child {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--header-text-color, var(--main-color, var(--primary-color))) !important;
}

.ec-mini-cart .mini-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* View Cart Button (outlined) */
.ec-mini-cart .btn-view-cart {
    display: block;
    text-align: center;
    padding: 12px 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--main-color, var(--primary-color));
    color: var(--primary-color, var(--primary-color));
    border: 2px solid var(--primary-color, var(--primary-color));
    text-decoration: none;
    transition: all 0.3s ease;
}

.ec-mini-cart .btn-view-cart:hover {
    background: var(--secondary-color, #1e1e1e);
    color: #ffffff;
    border-color: var(--secondary-color, #1e1e1e);
}

/* Checkout Button (filled — Restoria primary CTA) */
.ec-mini-cart .btn-checkout {
    display: block;
    text-align: center;
    padding: 14px 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    background: var(--main-color, var(--primary-color));
    color: var(--primary-color, var(--primary-color));
    text-decoration: none;
    transition: all 0.3s ease;
}

.ec-mini-cart .btn-checkout:hover {
    background: var(--button-hover-background-color, #222222);
    border-color: var(--button-hover-background-color, var(--primary-color));
    color: var(--button-hover-text-color, #ffffff);
}

/* ============================================================
   5. FULL CART PAGE
   ============================================================ */

.cart-section {
    padding: 80px 0;
}

.cart-section h1 {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: var(--tc-h2-font-size, 48px);
    font-weight: 600;
    color: var(--heading-color, #222222);
    margin-bottom: 40px;
    text-align: center;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 40px;
}

.cart-table thead th {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color, #666666);
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color, #e8e8e8);
    text-align: left;
}

[dir="rtl"] .cart-table thead th {
    text-align: right;
}

.cart-table tbody td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    vertical-align: middle;
}

.cart-table .cart-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-table .cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-table .cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-table .cart-product-name {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color, #222222);
}

.cart-table .cart-product-name a {
    color: inherit;
    text-decoration: none;
}

.cart-table .cart-product-name a:hover {
    color: var(--primary-color);
}

.cart-table .cart-product-price {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-table .cart-product-total {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color, #222222);
}

.cart-table .btn-remove {
    background: none;
    border: none;
    color: var(--text-color, #666666);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.3s ease;
}

.cart-table .btn-remove:hover {
    color: #e74c3c;
}

/* Cart Summary Sidebar */
.ec-cart-summary {
    background: #fafafa;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    padding: 32px;
}

.ec-cart-summary h3 {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--heading-color, #222222);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.ec-cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 15px;
    color: var(--text-color, #666666);
}

.ec-cart-summary .summary-row.total {
    border-top: 2px solid var(--border-color, #e8e8e8);
    margin-top: 12px;
    padding-top: 20px;
}

.ec-cart-summary .summary-row.total span:first-child {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heading-color, #222222);
}

.ec-cart-summary .summary-row.total span:last-child {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
}

.ec-cart-summary .btn-proceed-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    margin-top: 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.ec-cart-summary .btn-proceed-checkout:hover {
    background: var(--button-hover-background-color, #222222);
    border-color: var(--button-hover-background-color, #222222);
}

.ec-cart-summary .btn-continue-shopping {
    display: block;
    text-align: center;
    padding: 12px 24px;
    margin-top: 12px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color, #666666);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-cart-summary .btn-continue-shopping:hover {
    color: var(--primary-color);
}

/* ============================================================
   6. CHECKOUT PAGE
   ============================================================ */

.ec-checkout-section {
    padding: 80px 0;
}

.ec-checkout-section h1 {
    font-family: var(--heading-font, 'Fraunces'), serif;
    font-size: var(--tc-h2-font-size, 48px);
    font-weight: 600;
    color: var(--heading-color, #222222);
    margin-bottom: 40px;
    text-align: center;
}

/* Delivery Form Styling */
.ec-checkout-form .form-group {
    margin-bottom: 20px;
}

.ec-checkout-form label {
    display: block;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--heading-color, #222222);
    margin-bottom: 8px;
}

.ec-checkout-form input,
.ec-checkout-form select,
.ec-checkout-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 15px;
    color: var(--heading-color, #222222);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 0;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.ec-checkout-form input:focus,
.ec-checkout-form select:focus,
.ec-checkout-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 193, 157, 86), 0.1);
}

.ec-checkout-form .btn-place-order {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 24px;
    margin-top: 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s ease;
}

.ec-checkout-form .btn-place-order:hover {
    background: var(--button-hover-background-color, #222222);
}

/* Step Indicator */
.ec-checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
}

.ec-checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color, #666666);
    position: relative;
}

.ec-checkout-step.active {
    color: var(--primary-color);
}

.ec-checkout-step.completed {
    color: var(--heading-color, #222222);
}

.ec-checkout-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ec-checkout-step.active .step-number {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.ec-checkout-step.completed .step-number {
    border-color: var(--heading-color, #222222);
    background: var(--heading-color, #222222);
    color: #ffffff;
}

.ec-checkout-step + .ec-checkout-step::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--border-color, #e8e8e8);
}

[dir="rtl"] .ec-checkout-step + .ec-checkout-step::before {
    left: auto;
    right: -30px;
}

/* Payment Method Cards */
.ec-payment-methods {
    margin-top: 24px;
}

.ec-payment-method {
    border: 1px solid var(--border-color, #e8e8e8);
    padding: 20px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ec-payment-method:hover,
.ec-payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 193, 157, 86), 0.05);
}

.ec-payment-method input[type="radio"] {
    width: auto;
    accent-color: var(--primary-color);
}

.ec-payment-method .payment-label {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color, #222222);
}

.ec-payment-method .payment-desc {
    font-size: 13px;
    color: var(--text-color, #666666);
}

/* ============================================================
   7. PRODUCT CARD DESIGN PLUGIN OVERRIDES
   Override the default Product Card Design plugin styles to
   match Restoria's aesthetic.
   ============================================================ */

.product-card-design .pcd-slider {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.product-card-design .pcd-promotional-text {
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 12px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.product-card-design .pcd-gallery-arrow {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-card-design .pcd-gallery-arrow:hover {
    background: var(--secondary-color, #1e1e1e);
}

/* ============================================================
   8. NOTIFICATIONS & TOASTS
   ============================================================ */

.ec-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--primary-font, 'Urbanist'), sans-serif;
    font-size: 14px;
    color: #ffffff;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    max-width: 360px;
}

[dir="rtl"] .ec-toast {
    right: auto;
    left: 30px;
    border-left: none;
    border-right: 4px solid var(--primary-color);
    transform: translateX(-120%);
}

.ec-toast.show {
    transform: translateX(0);
}

.ec-toast .toast-icon {
    font-size: 20px;
    color: var(--primary-color);
}

.ec-toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-color, #666666);
    cursor: pointer;
    font-size: 16px;
}

[dir="rtl"] .ec-toast .toast-close {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================================
   9. RESPONSIVE DESIGN
   Mobile-first following Restoria's Bootstrap 5 breakpoints
   ============================================================ */

/* Tablets and below */
@media (max-width: 991.98px) {
    .ec-product-card .card-actions {
        transform: translateY(0);
        background: transparent;
        position: static;
        padding: 0 24px 16px;
        justify-content: flex-start;
    }

    .ec-product-card .card-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        background: #f5f5f5;
    }

    .ec-cart-table {
        display: block;
        overflow-x: auto;
    }

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

    .ec-cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color, #e8e8e8);
        align-items: center;
        gap: 12px;
    }

    .ec-cart-table tbody td {
        border: none;
        padding: 4px 8px;
    }

    .ec-checkout-steps {
        flex-direction: column;
        align-items: center;
    }

    .ec-checkout-step + .ec-checkout-step::before {
        display: none;
    }
}

/* Mobile phones */
@media (max-width: 575.98px) {
    .ec-product-grid {
        padding: 40px 0;
    }

    .ec-product-card .card-content {
        padding: 16px 18px 20px;
    }

    .ec-product-card .card-title {
        font-size: 17px;
    }

    .ec-product-card .card-price .current-price {
        font-size: 18px;
    }

    .ec-product-card .btn-add-cart {
        padding: 10px 18px;
        font-size: 12px;
    }

    .ec-mini-cart {
        width: 100%;
        max-width: 100vw;
    }

    .ec-cart-section {
        padding: 50px 0;
    }

    .ec-cart-section h1 {
        font-size: 28px;
    }

    .ec-checkout-section {
        padding: 50px 0;
    }

    .ec-checkout-section h1 {
        font-size: 28px;
    }

    .ec-cart-summary {
        padding: 24px;
    }
}

/* ============================================================
   10. ANIMATION HELPERS
   Consistent with Restoria's WOW.js / animate.css usage
   ============================================================ */

.ec-product-card.wow {
    visibility: hidden;
}

@keyframes ecFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-animate-in {
    animation: ecFadeInUp 0.6s ease forwards;
}

/* Stagger delays for grid items */
.ec-product-card:nth-child(1) { animation-delay: 0s; }
.ec-product-card:nth-child(2) { animation-delay: 0.15s; }
.ec-product-card:nth-child(3) { animation-delay: 0.3s; }
.ec-product-card:nth-child(4) { animation-delay: 0.45s; }
.ec-product-card:nth-child(5) { animation-delay: 0.6s; }
.ec-product-card:nth-child(6) { animation-delay: 0.75s; }

/* ============================================================
   11. DARK SECTION VARIANT
   For cards placed on dark backgrounds (matching Restoria sections)
   ============================================================ */

.dark-section .ec-product-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-section .ec-product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.dark-section .ec-product-card .card-title,
.dark-section .ec-product-card .card-title a {
    color: #ffffff;
}

.dark-section .ec-product-card .card-description {
    color: rgba(255, 255, 255, 0.7);
}

.dark-section .ec-product-card .card-content {
    background: var(--secondary-color, #1e1e1e);
}

/* Custome */

.btn-style-one{
    background: var(--main-color, var(--primary-color));
}

.text-primary {
    color: var(--primary-color) !important;
}

