/*
===================================================================
 1. Global & Theme Styles
===================================================================
*/
/* --- 1. Font is now imported in header.php --- */

/* --- 2. Theme Configuration ---
   This is your main theme file.
   You can change all your colors here!
*/
:root {
  /* --- Fonts: Farhang 2 Pro Native Design System --- */
  --font-family-base: 'FarhangFaNum', 'Farhang', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: 'FarhangFaNum', 'Farhang', sans-serif;

  /* --- Olive Green Theme Colors --- */
  --color-primary: #556B2F;     /* Dark Olive Green (for buttons, headers) */
  --color-primary-hover: #6B8E23; /* A lighter olive for hover */
  --color-secondary: #F0EFEA;   /* A very light beige/off-white (for backgrounds) */
  --color-text: #3d3d3d;      /* Dark gray (for text) */
  --color-border: #dddddd;
  --color-card-bg: #ffffff;     /* White background for cards */
  --color-navbar-bg: #f0f5e6;
  --color-danger: #D9534F;
}

/* --- 3. Apply Theme --- */

/* Apply font and base colors */
body {
  font-family: var(--font-family-base);
  background-color: var(--color-secondary);
  color: var(--color-text);
  font-weight: 400;
}

/* Make headings use Farhang bold weight with elegant letter spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Tabular figures for numbers, prices, counters, and tables */
.price,
.product-price,
.total-price,
.badge,
.table td,
.form-control.numeric,
[data-tnum] {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* --- 4. Override Bootstrap Components --- */

/* -- Navbar -- */
.navbar {
  background-color: var(--color-navbar-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar-brand {
  color: var(--color-primary);
  font-weight: 700;
}
.navbar-brand img { /* Moved from inline style in header.php */
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* -- Buttons -- */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-success {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* -- Badges -- */
.badge.bg-danger {
  background-color: var(--color-danger) !important;
}

/* -- Cards -- */
.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.card[onclick] {
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card[onclick]:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* -- Modals -- */
.modal-content {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* --- 5. Custom Classes --- */

/* --- 6. New Image Zoom Styles --- */
/* Style for the large image inside the new zoom modal */
.zoomed-image-content {
  /* Make it a block element */
  display: block;

  /* Center it horizontally */
  margin-left: auto;
  margin-right: auto;

  /* Constrain its size.
    max-width: 100% tells it to respect the modal's padding.
  */
  max-width: 100%;
  max-height: 80vh; /* 80% of the screen's height */

  /* Maintain aspect ratio */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- NEW: Admin Zoomed Image Preview Style --- */
/* This class controls the size of the image inside the admin zoom modal */
.admin-zoomed-image-preview {
    max-width: 400px;  /* Set a fixed max-width for a more controlled preview */
    max-height: 400px; /* Set a fixed max-height */
    object-fit: contain; /* Ensure the whole image is visible */
    margin: 0 auto;
}

/* --- 7. New Footer Styles --- */
.site-footer {
  /* Use the theme variables we already defined */
  background-color: var(--color-navbar-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.enamad-seal img {
  width: 120px; /* Standard enamad size */
  height: auto;
  border-radius: 5px;
}

/* --- 8. About Us Styles --- */
/* (Keeping these as they were in old-style-broken.css, assuming they are needed for about-us.php) */
.about-content {
    font-family: var(--font-family-base);
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-title {
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.about-section-title {
    color: #388E3C;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #8BC34A;
    border-radius: 5px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
}

.about-content > img,
.about-content p > img {
    margin-top: 1.5rem;
}

.about-link {
    color: #1976D2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.about-link:hover {
    color: #1565C0;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-content {
        padding: 15px;
    }
    .about-title {
        font-size: 1.8rem;
    }
    .about-section-title {
        font-size: 1.5rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    .about-content .lead {
        font-size: 1.15rem;
    }
    .about-content > img,
    .about-content p > img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 1.6rem;
    }
    .about-section-title {
        font-size: 1.3rem;
    }
}

/* --- 9. Article Page Styles (for articles-olive-oil-recipies.php and others) --- */
.article-section-image { /* Used in helpers.php for article images */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.olive-article-page { /* Applied to body in header.php */
  direction: rtl;
  text-align: right;
  font-family: var(--font-family-base);
  color: #333;
  line-height: 1.8;
}
.olive-article-page h1.display-4 {
  color: #3d550c;
  font-weight: bold;
  border-bottom: 3px solid #8f9b6c;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.olive-article-page h2 {
  color: #5a6639;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e8ede0;
  padding-bottom: 10px;
}
.olive-article-page h3 {
   color: #3d550c;
   font-weight: 600;
   margin-top: 1.5rem;
}

.olive-article-section {
  background-color: #f7f9f4;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e8ede0;
}

.olive-article-page ul {
  list-style-position: inside;
  padding-right: 0;
}
.olive-article-page ul li {
  margin-bottom: 0.75rem;
}

.olive-article-page ul li::marker {
  color: #8f9b6c;
  font-size: 1.2em;
  font-weight: bold;
}

.olive-article-page .lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #555;
}

.olive-article-tags h5 {
  color: #3d550c;
  font-weight: bold;
}
.olive-article-tags .badge {
  background-color: #5a6639;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5em 0.75em;
  margin-left: 8px;
  margin-bottom: 8px;
  border-radius: 5px;
}

/*
===================================================================
 10. Homepage Category Card Styles (for index.php)
===================================================================
*/

/* The card itself */
.category-card {
  overflow: hidden; /* Keeps the image corners rounded */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

/* The link wrapper for the card */
.homepage-category-link {
    display: block; /* Make the link fill its grid container */
}

/* Hover effect for the entire card link */
.homepage-category-link:hover .category-card {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* The card will fill the link's height */
.homepage-category-card {
    height: 100%;
}

/* Constrain the image, which in turn constrains the card's width */
.homepage-category-img {
    max-width: 250px; /* Max width for the image on larger screens */
    margin: 0 auto;   /* Center the image within its card */
    object-fit: contain; /* Ensures entire image is visible */
    padding: 5px;
}

/* Style for the title background in homepage category cards */
.homepage-category-card .card-title {
    background-color: #f0f5e6; /* A light olive/sage color */
    color: var(--color-primary); /* Use the main dark olive for the text */
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

/* --- 11. Homepage Category Card Image Fix (from landing.html) --- */
/* This rule targets only the images inside the category container on the homepage,
   ensuring they have a fixed height and cover the area, just like in landing.html. */
#category-container .card-img-top {
    height: auto; /* Allow image to scale proportionally */
    object-fit: contain; /* Ensure entire image is visible without cropping */
}

/* --- 12. My Basket Page Styles --- */
/* This rule specifically targets the images in the shopping cart on my-basket.php
   to override conflicting styles from external libraries like Neshan maps. */
.basket-item-image {
    width: 100px !important; /* Use !important to ensure this rule wins against conflicting styles */
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain;
}

/* Modern Basket Stepper Pill & Card (Option 3.A) */
.cart-stepper-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50rem;
    padding: 3px 6px;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.cart-stepper-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease-in-out;
    padding: 0;
}
.cart-stepper-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}
.cart-stepper-btn:hover:not(:disabled),
.cart-stepper-btn:active:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}
.cart-stepper-btn.cart-btn-plus {
    color: #2E4518;
    background: #f4f7ee;
    border-color: #d2dec0;
}
.cart-stepper-btn.cart-btn-plus:hover:not(:disabled),
.cart-stepper-btn.cart-btn-plus:active:not(:disabled) {
    background: #e5edd8;
    color: #1A2810;
}
.cart-stepper-btn.cart-btn-trash {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.cart-stepper-btn.cart-btn-trash:hover:not(:disabled),
.cart-stepper-btn.cart-btn-trash:active:not(:disabled) {
    background: #fee2e2;
    color: #b91c1c;
}
.cart-stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.cart-stepper-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    user-select: none;
}
.basket-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.basket-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.basket-delete-btn {
    transition: background-color 0.15s ease;
}
.basket-delete-btn:hover {
    color: #dc3545 !important;
    background-color: #fee2e2;
    border-radius: 4px;
}


  /* Scoped CSS for Product Info Section for Extra info section */
    .olive-info-container {
    font-family: var(--font-family-base);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
    }

    .olive-info-container h2 {
    color: #4a6813; /* Olive Green */
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 10px;
    }

    .olive-info-container p {
    margin-bottom: 15px;
    font-size: 1rem;
    }

    .olive-info-container strong {
    color: #2c3e50;
    }

    /* Benefits Grid */
    .olive-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    }

    .olive-benefit-card {
    background-color: #f9fcf7;
    border-right: 4px solid #8bc34a;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* Nutrition Table */
    .olive-nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    }

    .olive-nutrition-table th, 
    .olive-nutrition-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: center;
    }

    .olive-nutrition-table th {
    background-color: #4a6813;
    color: white;
    font-weight: normal;
    }

    .olive-nutrition-table tr:nth-child(even) {
    background-color: #fcfcfc;
    }

    /* Detection Section */
    .olive-detection-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    }

    .olive-check-item {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    }

    .olive-check-item.valid {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    }

    .olive-check-item.invalid {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    }

    .olive-icon {
    font-size: 1.2rem;
    min-width: 25px;
    }

    /* Storage Box */
    .olive-storage-tip {
    background-color: #fff8e1;
    border: 1px dashed #ffb300;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 13. NEW: zEditor Styles --- */
.zeditor-wrapper {
    border: 1px solid var(--color-border);
    border-radius: 0.375rem; /* Match Bootstrap's form-control */
}

.zeditor-toolbar {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.zeditor-content {
    min-height: 150px;
    padding: 0.75rem;
    line-height: 1.6;
}

/* --- NEW: Make zEditor content match the live site styles --- */
/* This makes the editor WYSIWYG by applying the same styles as .olive-info-container */
.zeditor-content h2 {
    color: #4a6813; /* Olive Green */
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 10px;
}

.zeditor-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: right; /* Ensure text is right-aligned */
    line-height: 1.8;
}

/* --- NEW: Add component styles to the zEditor --- */
.zeditor-content .olive-benefit-card {
    background-color: #f9fcf7;
    border-right: 4px solid #8bc34a;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.zeditor-content .olive-storage-tip {
    background-color: #fff8e1;
    border: 1px dashed #ffb300;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zeditor-content .olive-icon {
    font-size: 1.2rem;
}

/* ==========================================================================
   FLOATING CART & MINI-CART DRAWER DESIGN SYSTEM
   ========================================================================== */

/* 1. Floating Bottom Bar (Preview on Add-to-Cart) */
.floating-cart-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1060;
    width: calc(100% - 32px);
    max-width: 620px;
    background: rgba(45, 59, 23, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(85, 107, 47, 0.3);
    padding: 12px 18px;
    font-family: var(--font-family-base) !important;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    will-change: transform, opacity;
}

.floating-cart-bar.anim-entering {
    animation: floatingBarSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.floating-cart-bar.anim-leaving {
    animation: floatingBarSlideToSide 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatingBarSlideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(80px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes floatingBarSlideToSide {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-120%) translateY(30px) scale(0.65);
    }
}

.floating-cart-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.floating-cart-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.floating-cart-bar-img-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-cart-bar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-bar-default-icon {
    font-size: 22px;
    color: #e2f0d9;
}

.floating-cart-bar-text {
    min-width: 0;
}

.floating-cart-bar-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.floating-cart-bar-meta {
    font-size: 12px;
    color: #d2dec0;
    display: flex;
    align-items: center;
}

.floating-cart-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.floating-bar-view-btn {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
}

.floating-bar-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

.floating-bar-checkout-btn {
    background: #ffffff;
    color: var(--color-primary) !important;
    font-size: 12px;
    padding: 6px 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-bar-checkout-btn:hover {
    background: #f0f5e6;
    transform: translateY(-1px);
}

/* 2. Docked Floating Cart FAB (Parks at bottom-left in RTL) */
.floating-cart-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1050;
    background: linear-gradient(135deg, #5e7a33 0%, #3e5220 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(45, 60, 20, 0.4), 0 3px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-family-base) !important;
    user-select: none;
}

.floating-cart-fab:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 36px rgba(45, 60, 20, 0.5), 0 4px 10px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.floating-cart-fab:active {
    transform: scale(0.96) translateY(0);
}

.floating-cart-fab.anim-spring-in {
    animation: fabSpringEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.floating-cart-fab.anim-spring-out {
    animation: fabSpringExit 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fabSpringEntrance {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fabSpringExit {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.4) translateY(30px);
        pointer-events: none;
    }
}

.floating-cart-fab-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-cart-fab-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ffc107;
    color: #1a250c;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #3e5220;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

.floating-cart-fab-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.floating-fab-label {
    font-size: 11px;
    color: #d6e4c7;
    font-weight: 500;
}

.floating-fab-total {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

/* 3. Offcanvas Mini-Cart Drawer (Slide-over) */
.mini-cart-offcanvas {
    font-family: var(--font-family-base) !important;
    border-right: 1px solid rgba(85, 107, 47, 0.15);
    width: 380px !important;
    max-width: 90vw !important;
}

.mini-cart-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(85, 107, 47, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mini-cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background-color 0.15s ease;
}

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

.mini-cart-item-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    flex-shrink: 0;
}

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

.mini-cart-item-title {
    font-weight: 700;
    font-size: 13px;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.mini-cart-item-price {
    font-size: 12px;
    color: #718096;
}

.mini-cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.mini-cart-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 50rem;
    padding: 2px 4px;
    background: #ffffff;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mini-cart-stepper button {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #334155;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    transition: all 0.15s ease;
}

.mini-cart-stepper button svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
}

.mini-cart-stepper button:hover:not(:disabled),
.mini-cart-stepper button:active:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

.mini-cart-stepper button.btn-trash {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.mini-cart-stepper button.btn-trash:hover:not(:disabled) {
    background: #fee2e2;
}

.mini-cart-stepper-qty {
    font-weight: 700;
    font-size: 13px;
    min-width: 20px;
    text-align: center;
    color: #1e293b;
}

/* Mobile Adjustments (iOS & Android) */
@media (max-width: 576px) {
    .floating-cart-bar {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 9px 12px;
        border-radius: 16px;
        z-index: 1080;
    }

    .floating-cart-bar-inner {
        gap: 8px;
    }

    .floating-cart-bar-info {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .floating-cart-bar-img-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .floating-cart-bar-title {
        font-size: 13px;
        max-width: 150px;
    }

    .floating-cart-bar-meta {
        font-size: 11px;
    }

    .floating-bar-view-btn {
        display: none !important;
    }

    .floating-bar-checkout-btn {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .floating-cart-bar {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        max-width: calc(100% - 24px) !important;
    }

    .floating-cart-fab {
        display: none !important;
    }

    .mini-cart-offcanvas {
        width: 88vw !important;
        max-width: 360px !important;
        z-index: 1090 !important;
    }
}

