/**
 * Agorabe Framework - Shop Shortcodes Styles
 *
 * Styles for shop_cards, shop_slider, and shop_list_view shortcodes
 */

/* Enhanced Shop Cards Grid with Dynamic Columns */
.agorabe-shop-cards {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Column-specific adjustments */
.agorabe-shop-cards[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.agorabe-shop-cards[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.agorabe-shop-cards[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.agorabe-shop-cards[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.agorabe-shop-cards[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.shop-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #005a87);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-card:hover::before {
    opacity: 1;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.shop-card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.shop-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.shop-card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.shop-card-content {
  padding: 1.5rem;
  padding: 20px 10px;
  transition: opacity 0.3s ease;
}

.shop-card:hover .shop-card-content {
  background: #22B573;
  transition: opacity 0.3s ease;
  position: relative;
}
.shop-card .shop-card-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: #22B573;
  *background: linear-gradient(0deg, rgba(34, 181, 115, 1) 20%, rgba(34, 181, 115, 0) 100%);
  transition: opacity 0.3s ease;
}
.shop-card:hover .shop-card-content::before {
  background: linear-gradient(0deg, rgba(34, 181, 115, 1) 20%, rgba(34, 181, 115, 0) 100%);
  transition: opacity 0.3s ease;
}
.shop-card:hover .shop-card-content > h3 > a {
  color:#fff;
  transition: opacity 0.3s ease;
}

.shop-card-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  font-size: 20px !important;
}

.shop-card-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-card-content h3 a:hover {
    color: #007cba;
}

.shop-card-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.shop-card-link {
    display: none;
    *display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 124, 186, 0.05);
}

.shop-card-link:hover {
    color: #0056b3;
    text-decoration: none;
    background: rgba(0, 124, 186, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Shop Slider with Images - Slick Carousel */
.agorabe-shop-slider-wrapper {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 0px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-height: 200px;
  box-shadow: none;
}

/* Preloader - Show while carousel initializes */
.agorabe-slider-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 12px;
}

.agorabe-shop-slider-wrapper.loaded .agorabe-slider-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.agorabe-slider-loader {
    text-align: center;
}

.agorabe-slider-loader .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #e9ecef;
    border-top: 4px solid #22B573;
    border-radius: 50%;
    animation: agorabeSliderSpin 1s linear infinite;
}

@keyframes agorabeSliderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.agorabe-slider-loader p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hide slider until initialized to prevent layout shift */
.agorabe-shop-slider:not(.slick-initialized) {
    opacity: 0;
    visibility: hidden;
}

.agorabe-shop-slider {
    position: relative;
}

/* Slick Carousel - Equal Height Slides */
.agorabe-shop-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.agorabe-shop-slider .slick-slide {
    *height: auto;
    height: 85px;
    display: flex !important;
    align-items: stretch;
}

/* Slick List - Let Slick handle layout */
.agorabe-shop-slider .slick-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* Add spacing via padding on Slick slide wrapper (not margin on content) */
.agorabe-shop-slider .slick-slide {
    margin: var(--col-margin);  /* Use CSS variable from shortcode, default 8px */
    padding-right: 0px;
}

/* Ensure Slick slide containers take full width */
.agorabe-shop-slider .slick-slide > div {
    display: flex !important;
    width: 100%;
    height: 100%;
}

/* Individual Slide Styling - Horizontal Layout */
.slider-slide {
    display: flex !important;
    /* NO MARGIN - margins interfere with Slick's width calculation */
    /* Spacing is handled by .slick-slide padding above */
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* Let Slick calculate width based on slidesToShow */
    box-sizing: border-box;
    width: 100%;  /* Fill the Slick-calculated width */
    height: 80px;  /* Fixed height for horizontal layout */
    overflow: hidden;
    position: relative;
}

.slider-slide:hover {
    border-color:#22B573;
    box-shadow: 0 4px 12px rgba(34,181,115,0.2);
    transform: translateY(-2px);
}

.slider-slide.active {
    border-color:#22B573;
    background: #22B573;
    color: white;
    box-shadow: 0 4px 12px rgba(34,181,115,0.4);
    transform: scale(1.02);
    z-index: 10;
}

.slider-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: row;  /* Horizontal layout */
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Text Content Area - Left side, 20% width */
.slider-slide-content {
    position: relative;
    z-index: 2;
    width: 20%;
    min-width: 80px;  /* Minimum space for text */
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;  /* Solid white background for text */
    transition: all 0.3s ease;
}

.slider-slide.active .slider-slide-content {
    background: transparent;  /* Transparent on active to show green */
}

.slider-slide-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
  white-space: normal;
  word-break: break-word;
  position: absolute;
  left: 0;
  font-size: 20px !important;
  z-index: 9;
  padding-left: 20px;
}

.slider-slide.active .slider-slide-title {
  color: white;
}

/* Image Area - Right side as background, 80% width */
.slider-slide-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;  /* Image takes 80% of the width */
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slider-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.slider-slide:hover .slider-slide-image img {
    transform: scale(1.05);
}

/* White Gradient Overlay - Covers 70% of card width, fades from left to right */
.slider-slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 87.5%;  /* 70% of total card width = 70/80 of image width = 87.5% */
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,      /* Fully white at left */
        rgba(255, 255, 255, 0.9) 30%,   /* Still mostly white */
        rgba(255, 255, 255, 0.5) 60%,   /* Fading */
        rgba(255, 255, 255, 0) 100%     /* Fully transparent at right */
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide gradient on active slide to show image clearly */
.slider-slide.active .slider-slide-image::before {
  background: linear-gradient( to right, rgb(34, 181, 115) 20%, rgba(34, 181, 115, 0.4) 50%, rgba(34, 181, 115, 0) 100% );
  width: 100%;
  left: 0;
}

/* Navigation Buttons - Fade In/Out on Hover */
.slider-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    right: -25px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 1rem;
    z-index: 10;
}

.agorabe-shop-slider-wrapper.loaded .slider-nav {
    visibility: visible;
  opacity: 1;
}

.agorabe-shop-slider-wrapper .slider-nav {
    visibility: hidden;
  opacity: 0;
}

.slider-nav button {
    background: #22b573;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: auto;
    /* Fade out by default */
    opacity: 0;
    visibility: hidden;
}

/* Always visible when setting is enabled */
.agorabe-shop-slider-wrapper[data-buttons-always-visible="true"] .slider-nav button {
    opacity: 1;
    visibility: visible;
}

/* Fade in on wrapper hover (desktop) - only if not always visible */
.agorabe-shop-slider-wrapper:not([data-buttons-always-visible="true"]):hover .slider-nav button {
    opacity: 1;
    visibility: visible;
}

/* Always visible on touch devices */
@media (hover: none) and (pointer: coarse) {
    .slider-nav button {
        opacity: 0.7;
        visibility: visible;
    }
    
    .slider-nav button:active {
        opacity: 1;
    }
}

.slider-nav button:hover {
    background: #999999;
    transform: scale(1.1);
    opacity: 1;
}

.slider-nav button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: scale(1);
    opacity: 0.3;
}

/* Pagination dots */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.pagination-dot {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.pagination-dot:hover .dot,
.pagination-dot.active .dot {
    background: #007cba;
    transform: scale(1.2);
}

.pagination-dot.active .dot {
    width: 24px;
    border-radius: 4px;
}

/* Shop List View */
.agorabe-shop-list-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: -10px;
  z-index: 999;
}

.shop-list-item {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
    transition: all 0.3s ease;
}

.shop-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.list-item-thumbnail {
    position: relative;
}

.list-item-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    box-shadow: none;
    transform: scale(118%);
}

.list-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.product-metadata {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-categories {
    font-size: 0.85rem;
    color: #007cba;
    margin-top: 0.25rem;
}

.product-stock {
    font-size: 0.9rem;
    font-weight: 500;
}

.product-stock .stock-info {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  border: 1px solid #22B573 !important;
  font-size: 10px;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.list-item-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.product-price {
    text-align: center;
  font-weight: 600;
  color: #d32109;
  font-size: 28px;
  font-weight: bold;
}

.product-price .amount {
    color: #d32109;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  border: none;
  padding: 0px;
  background: none;
}

.qty-decrease, .qty-increase {
  background: #22B573;
  color: white;
  border: none;
  width: 65px;
  height: 50px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qty-decrease {
  background: white;
  color: #22B573;
  border: 3px solid #22B573;
  transition: all 0.2s ease;
}

.qty-decrease:hover, .qty-increase:hover {
    background: #999;
    *transform: scale(1.05);
    border: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.qty-decrease:disabled, .qty-increase:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: scale(1);
}

.qty-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
}

.qty-input:disabled {
    background: #e9ecef;
    color: #6c757d;
}

/* Floating Add to Cart Button */
.floating-add-to-cart {
    position: fixed;
    bottom: 75px !important;
    left: 2rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

.batch-add-to-cart {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.batch-add-to-cart:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.cart-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: none;
}

/* Alert Styles */
.agorabe-alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.agorabe-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.agorabe-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Category Filter Styles */
.category-filter-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-pill {
    background: white;
    color: #495057;
    border: 2px solid #e9ecef;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-pill:hover {
    border-color: #22B573;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.filter-pill.active {
    background: #22B573;
    color: white;
    border-color: #22B573;
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.filter-pill.active:hover {
    background: #22B573;
    border-color: #22B573;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-list-item {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
    }

    .list-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Adjust shop cards for tablet */
    .agorabe-shop-cards[data-columns="4"],
    .agorabe-shop-cards[data-columns="5"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Adjust slider for tablet - maintain horizontal layout */
    .slider-slide {
        height: 80px;  /* Keep standard height on larger tablets */
    }
    
    .slider-slide-content {
        width: 22%;
        min-width: 80px;
    }
    
    .slider-slide-title {
        font-size: 0.8rem;
    }
    
    .slider-slide-image {
        width: 78%;
    }
}

@media (max-width: 768px) {
    .agorabe-shop-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: ;
        padding-left: 10px;
        padding-right: 10px;
        margin: 0;
    }

    .agorabe-shop-slider {
        padding: 1rem;
        margin-bottom: 0px;
    }

    .shop-list-item {
        grid-template-columns: 1fr 2fr auto;
        gap: 1rem;
        padding: 1.5rem;
    }

    .list-item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .quantity-controls {
        justify-content: center;
    }

    .floating-add-to-cart {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .batch-add-to-cart {
        width: 100%;
        justify-content: center;
    }

    .category-filter-pills {
        justify-content: center;
    }
    
    /* Adjust slider for tablet/mobile */
    .slider-slide {
        /* Maintain horizontal layout, no extra padding needed */
        height: 75px;  /* Slightly shorter on tablets */
    }
    
    .slider-slide-content {
        width: 25%;
        min-width: 75px;
        padding: 0.625rem;
    }
    
    .slider-slide-title {
        font-size: 0.75rem;
    }
    
    .slider-slide-image {
        width: 75%;
    }
}

@media (max-width: 480px) {
    .slider-slide {
        /* Maintain horizontal layout on mobile */
        height: 70px;  /* Slightly shorter on small screens */
    }
    
    .slider-slide-content {
        width: 30%;  /* Give more space to text on mobile */
        min-width: 70px;
        padding: 0.5rem;
        width: 100%;
        height: 100%;
    }
    
    .slider-slide-title {
        font-size: 0.7rem;
    }
    
    .slider-slide-image {
        width: 70%;  /* Image takes less space on mobile */
    }
    
    .product-title h4 {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .qty-input {
        width: 50px;
        height: 32px;
    }

    .qty-decrease,
    .qty-increase {
        width: 50px;
        height: 38px;
        font-size: 1rem;
    }

    .filter-pill {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.agorabe-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling for slider */
.slider-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Touch indicators for mobile */
@media (hover: none) {
    .slider-slide:active {
        background: #e9ecef;
    }
}

/* Modal Styles */
.agorabe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.agorabe-modal.active {
    opacity: 1;
    visibility: visible;
}

.agorabe-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.agorabe-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.agorabe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #22b573;
    background: #22b573;
    border-radius: 12px 12px 0 0;
}

.agorabe-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
}

.agorabe-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.agorabe-modal-close:hover {
    background: none;
    color: #333333;
}

.agorabe-modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.cart-review-intro {
    margin-bottom: 1.5rem;
}

.cart-review-intro p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.cart-review-items {
    margin-bottom: 1.5rem;
}

.cart-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.cart-item-quantity {
    font-weight: 600;
    color: #007cba;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cart-review-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 500;
    color: #495057;
}

.summary-value {
    font-weight: 600;
    color: #007cba;
}

.agorabe-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.agorabe-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agorabe-btn-primary {
    background: #007cba;
    color: white;
}

.agorabe-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.agorabe-btn-secondary {
    background: #6c757d;
    color: white;
}

.agorabe-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.agorabe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .agorabe-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .agorabe-modal-header,
    .agorabe-modal-body,
    .agorabe-modal-footer {
        padding: 1rem;
    }

    .agorabe-modal-footer {
        flex-direction: column;
    }

    .agorabe-btn {
        width: 100%;
    }
}

/* ========================================
   PHASE 1: LOGIN GATING ENHANCEMENTS
   ======================================== */

/* Login-required controls styling */
.login-required-controls {
    position: relative;
    opacity: 0.7;
}

.login-required-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1px);
    z-index: 5;
    pointer-events: none;
    border-radius: 4px;
}

.login-required-btn {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.login-required-btn:hover {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    transform: none !important;
}

.login-required-input {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.login-required-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background-color: #f8f9fa !important;
}

/* Login required notice */
.login-required-notice {
    margin-top: 0.5rem;
}

.login-required-notice .agorabe-login-trigger {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,124,186,0.2);
}

.login-required-notice .agorabe-login-trigger:hover {
    background: linear-gradient(135deg, #005a87, #004068);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

/* Non-logged-in state for shop list items */
.non-logged-in .product-stock {
    display: none !important;
}

.non-logged-in .shop-list-item {
    position: relative;
}

.non-logged-in .shop-list-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 47%, rgba(0,124,186,0.03) 49%, rgba(0,124,186,0.03) 51%, transparent 53%);
    pointer-events: none;
    border-radius: 8px;
}

/* Mobile responsiveness for login gating */
@media (max-width: 768px) {
    .login-required-notice .agorabe-login-trigger {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .login-required-controls .qty-input {
        font-size: 0.875rem;
    }

    .login-required-controls .login-required-btn {
        font-size: 1rem;
        padding: 0.375rem 0.5rem;
    }
}

/* ========================================
   CUSTOMER DASHBOARD SYSTEM STYLES
   ======================================== */

/* Dashboard Container */
.agorabe-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Dashboard Header */
.agorabe-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-welcome h2.dashboard-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.dashboard-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007cba;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Dashboard Actions */
.agorabe-dashboard-actions {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.agorabe-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.agorabe-action-btn.primary {
    background: #007cba;
    color: white;
}

.agorabe-action-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

.agorabe-action-btn.secondary {
    background: #28a745;
    color: white;
}

.agorabe-action-btn.secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.agorabe-action-btn.tertiary {
    background: white;
    color: #495057;
    border: 2px solid #e9ecef;
}

.agorabe-action-btn.tertiary:hover {
    border-color: #007cba;
    color: #007cba;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Dashboard Orders Section */
.agorabe-dashboard-orders {
    margin-bottom: 3rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-meta .order-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.order-meta .order-number a {
    color: #007cba;
    text-decoration: none;
}

.order-meta .order-number a:hover {
    text-decoration: underline;
}

.order-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

.status-pending {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-refunded {
    background: #e2e3e5;
    color: #383d41;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.order-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.order-total {
    color: #007cba !important;
    font-size: 1.1rem;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
}

.orders-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Empty State */
.agorabe-dashboard-empty,
.agorabe-orders-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.empty-description {
    color: #6c757d;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Account Information */
.agorabe-dashboard-account {
    margin-bottom: 3rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.card-content {
    padding: 1.5rem;
}

.account-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.account-field:last-child {
    margin-bottom: 0;
}

.field-label {
    font-weight: 500;
    color: #495057;
}

.field-value {
    color: #2c3e50;
}

.field-value.status-approved {
    color: #28a745;
    font-weight: 600;
}

.field-value.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.field-value.status-revoked {
    color: #dc3545;
    font-weight: 600;
}

.card-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

/* Navigation Styles */
.agorabe-account-navigation {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.agorabe-account-nav {
  padding-left: 20px;
  padding-right: 20px;
}

.user-avatar .nav-avatar {
    border-radius: 50%;
    border: 3px solid #e9ecef;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.user-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.user-status.status-approved {
    background: #d4edda;
    color: #155724;
}

.user-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.user-status.status-administrator {
    background: #d1ecf1;
    color: #0c5460;
}

.agorabe-account-nav .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #22b573;
    transform: translateX(5px);
}

.nav-item.is-active .nav-link {
    background: #22b573;
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-label {
    font-weight: 500;
    flex: 1;
}

.nav-current {
    color: inherit;
    font-weight: 600;
}

.nav-quick-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-number {
    font-weight: 600;
    color: #007cba;
    font-size: 0.9rem;
}

.stat-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.woocommerce-MyAccount-content {
  border: none !important;
  padding: 0px !important;
}

/* Orders Container */
.agorabe-orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.agorabe-orders-header {
    margin-bottom: 2rem;
}

.orders-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.orders-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

/* Order Cards */
.agorabe-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.order-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-meta .order-number {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.order-meta .order-number a {
    color: #007cba;
    text-decoration: none;
}

.order-meta .order-number a:hover {
    text-decoration: underline;
}

.order-card-body {
    margin-bottom: 1rem;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.order-details {
    display: flex;
    gap: 2rem;
}

.order-items {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-total {
    font-weight: 600;
    color: #007cba;
    font-size: 1.1rem;
}

.order-items-preview {
    flex: 1;
}

.items-title {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    margin: 0 0 0.75rem 0;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.item-name {
    color: #495057;
    flex: 1;
}

.item-quantity {
    color: #007cba;
    font-weight: 500;
}

.more-items {
    font-style: italic;
    color: #6c757d;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.order-status-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Orders Pagination */
.agorabe-orders-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Order Details Page */
.agorabe-order-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.agorabe-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.order-title-section .order-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.order-meta-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.order-meta-info .order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.agorabe-order-status-info {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* Order Items List */
.agorabe-order-items {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.item-info .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item {
    font-size: 0.85rem;
    color: #6c757d;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-label,
.total-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.quantity-value,
.total-value {
    font-weight: 600;
    color: #2c3e50;
}

.item-actions {
    text-align: right;
}

/* Order Totals */
.agorabe-order-totals {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.totals-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.total-final {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.total-final .total-label,
.total-final .total-value {
    font-weight: 600;
    color: #007cba;
    font-size: 1.1rem;
}

/* Addresses */
.agorabe-order-addresses {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.address-card .address-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.address-content {
    color: #495057;
    line-height: 1.6;
}

/* Order Notes */
.agorabe-order-notes {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-note {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.note-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.note-content {
    color: #495057;
    line-height: 1.6;
}

.note-content p {
    margin: 0;
}

/* Order Actions */
.agorabe-order-actions {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.agorabe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.agorabe-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.agorabe-btn-primary {
    background: #22b573;
    color: white;
}

.agorabe-btn-primary:hover {
    background: #999999 !important;
    color: #fff !important;
    *transform: translateY(-1px);
}

.agorabe-btn-secondary {
    background: #6c757d;
    color: white;
}

.agorabe-btn-secondary:hover {
    background: #5a6268;
    *transform: translateY(-1px);
}

.agorabe-btn-outline {
    background: transparent;
    color: #22b573;
    border: 2px solid #22b573;
}

.agorabe-btn-outline:hover {
    background: #22b573;
    color: white;
    *transform: translateY(-1px);
}

.agorabe-btn-danger {
    background: #dc3545;
    color: white;
}

.agorabe-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.agorabe-btn-link {
    background: transparent;
    color: #22b573;
    text-decoration: underline;
    border: none;
    padding: 0.5rem 0;
}

.agorabe-btn-link:hover {
    color: #0056b3;
}

/* Responsive Dashboard Design */
@media (max-width: 1024px) {
    .agorabe-dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .dashboard-stats {
        justify-content: center;
    }

    .order-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-stats {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .agorabe-dashboard-container,
    .agorabe-orders-container,
    .agorabe-order-details-container {
        padding: 1rem 0px;
    }

    .agorabe-dashboard-header {
        padding: 1.5rem;
    }

    .dashboard-welcome h2.dashboard-title {
        font-size: 1.5rem;
    }

    .dashboard-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .agorabe-action-btn {
        justify-content: center;
        padding: 1rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-actions {
        justify-content: center;
    }

    .order-item-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .item-actions {
        text-align: center;
    }

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

    .agorabe-order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-actions-header {
        text-align: center;
    }

    .agorabe-orders-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-quick-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stat-item {
        padding: 1rem;
        background: white;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .order-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .order-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .nav-user-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-quick-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Status-specific styling */
.order-status-completed {
    border-left: 4px solid #28a745;
}

.order-status-processing {
    border-left: 4px solid #17a2b8;
}

.order-status-on-hold {
    border-left: 4px solid #ffc107;
}

.order-status-pending {
    border-left: 4px solid #fd7e14;
}

.order-status-cancelled {
    border-left: 4px solid #dc3545;
}

.order-status-refunded {
    border-left: 4px solid #6c757d;
}

/* Future Enhancement Hooks */
.order-status-timeline {
    margin-top: 1rem;
    /* Placeholder for future timeline component */
}

.agorabe-dashboard-widgets {
    /* Placeholder for future dashboard widgets */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}


/* ========================================
   ENHANCED CART SYSTEM STYLES
   ======================================== */

/* Enhanced Cart Container */
.agorabe-enhanced-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Enhanced Cart Header (Dashboard Style) */
.agorabe-cart-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-title-section {
  text-align: center;
}

.agorabe-thankyou-container {
  padding-top: 20px;
}

.cart-title-section .cart-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.cart-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.cart-stats {
    display: flex;
    gap: 2rem;
}

.cart-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.cart-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #22b573;
    line-height: 1;
}

.cart-stats .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Cart Progress Indicator */
.agorabe-cart-progress {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    transform: scale(1.1);
}

.progress-step .step-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #ffffff;
    border-color: #22b573;
    color: white;
}

.progress-step .step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
}

.progress-step.active .step-label {
    color: #22b573;
    font-weight: 600;
}

/* Enhanced Cart Items (Card-based) */
.agorabe-cart-items-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 120px 2fr 1fr 150px;
    gap: 1.5rem;
    align-items: start;
}

.cart-item-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Product Image Section */
.cart-item-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.sale-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Enhanced Product Information */
.cart-item-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-header .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.product-header .product-name a {
  color: #000;
  text-decoration: none;
  font-size: 18px;
}

.product-header .product-name p {
    display: none;
}

.product-header .product-name a:hover {
    text-decoration: none;
}

.product-categories {
    font-size: 0.85rem;
    color: #007cba;
    font-weight: 500;
}

.product-meta-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-meta-enhanced .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1rem;
}

.meta-content {
    color: #495057;
}

.price-info {
    margin-top: 0.5rem;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.sale-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
}

.savings {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.unit-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.price-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.quantity-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.quantity-value {
    font-weight: 600;
    color: #007cba;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}

.checkout-product-item .quantity-value {
  font-weight: 600;
  color: #fff;
  background: #22b573;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 24px;
  text-align: center;
}

.product-checkout-meta {
  display: flex;
  flex-direction: row;
  gap: 15px;
  font-size: 14px;
  margin-bottom: 12px;
}

.quantity-price-display .value {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  border: 1px solid #22B573 !important;
  font-size: 12px;
}

element {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  border: 1px solid #22B573 !important;
  font-size: 12px;
}

.stock-status span {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.stock-high {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
}

.backorder-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.notice-icon {
    font-size: 1rem;
}

.notice-text {
    font-size: 0.85rem;
    color: #856404;
    font-weight: 500;
}

/* Enhanced Line Total */
.cart-item-total-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.cart-edit-product-info .product-details {
  text-align: center;
}
.cart-edit-product-info .product-details .product-price {
    display: none;
}
.line-total .total-price {
  font-weight: 600;
  margin-top: 15px;
  font-size: 1.1rem;
  color: #d32109;
}
.cart-edit-controls .quantity-controls .edit-qty-input {
  text-align: center;
}

.line-total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.total-label {
    font-size: 0.875rem;
    color: #6c757d;
    display: none;
}

.total-amount {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    color: #d32109;
}

.line-savings {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.savings-label {
    font-size: 0.8rem;
    color: #28a745;
}

.savings-amount {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

#agorabe-cart-remove-modal .agorabe-modal-content .remove-confirmation-message {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex-direction: column;
}

#agorabe-cart-remove-modal .agorabe-modal-content .remove-confirmation-message p {
  margin: 0px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: #6c757d;
}

#agorabe-cart-remove-modal .agorabe-modal-content .remove-confirmation-message img {
  width: 25px !important;
  height: auto !important;
  margin-bottom: 10px !important;
}

#agorabe-cart-edit-modal.loading .agorabe-modal-content::after {
  content: '' !important;
  position: absolute !important;
  background: #eeee22;
  z-index: 9 !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#agorabe-cart-remove-modal.loading .agorabe-modal-content::after {
  content: '' !important;
  position: absolute !important;
  background: #eeee22;
  z-index: 9 !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Enhanced Action Buttons */
.cart-item-actions-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.cart-item-actions-enhanced .agorabe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-item-actions-enhanced .btn-icon {
    font-size: 1rem;
}

.cart-item-actions-enhanced .btn-text {
    font-weight: 500;
}

/* Enhanced Empty Cart State */
.agorabe-cart-empty-enhanced {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-content .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-cart-content .empty-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.empty-cart-content .empty-description {
    color: #6c757d;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.empty-cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.empty-cart-suggestions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Enhanced Cart Actions */
.agorabe-cart-actions-enhanced {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #22b573;
}

.agorabe-cart-actions-enhanced .agorabe-btn-link {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
}

.cart-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coupon-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
}

.coupon-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.cart-update-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Enhanced Cart Summary */
.agorabe-cart-summary-enhanced {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.summary-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-stat .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.summary-stat .stat-value {
    font-weight: 600;
    color: #22b573;
}

.cart-quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cart-quick-actions .agorabe-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.agorabe-dashboard-orders .section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: rgb(44, 62, 80);
  margin: 0px 0px 0.5rem;
}

.agorabe-dashboard-account .section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: rgb(44, 62, 80);
  margin: 0px 0px 0.5rem;
}

.agorabe-orders-header .orders-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.woocommerce-MyAccount-content .avada-woocommerce-myaccount-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.agorabe-checkout-review-enhanced .checkout-product-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
}
.agorabe-checkout-review-enhanced .checkout-product-item .product-info-column h4 {
    margin-top:2px;
    margin-bottom: 8px;
}
.agorabe-checkout-review-enhanced .checkout-product-item .product-info-column p {
    display:none;
}
.checkout-totals-summary {
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: var(--sep_color);
  padding-top: 10px;
  padding-bottom: 10px;
}
.checkout-totals-summary .order-total-row, .checkout-totals-summary .order-total-row .amount {
  font-weight: 600;
  color: #22b573 !important;
}

/* Enhanced Cart Collaterals */
.cart-collaterals-enhanced {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.cart-collaterals-enhanced .cart_totals {
    padding: 0px;
    border: none;
}
.cart-collaterals-enhanced .cart_totals h2 {
  font-size: 28px;
  text-align: center;
}
.cart-collaterals-enhanced .cart_totals .order-total, .cart_totals .order-total .amount {
  color: #22b573 !important;
}
.cart-collaterals-enhanced .cart_totals .wc-proceed-to-checkout .fusion-update-cart {
    display: none;
}
.cart-collaterals-enhanced .cart_totals .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  background: #22b573;
}

/* Action Button Enhancements */
.agorabe-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.agorabe-action-btn.primary {
    background: #007cba;
    color: white;
}

.agorabe-action-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

.agorabe-action-btn.secondary {
    background: #28a745;
    color: white;
}

.agorabe-action-btn.secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.agorabe-action-btn.tertiary {
    background: white;
    color: #495057;
    border: 2px solid #e9ecef;
}

.agorabe-action-btn.tertiary:hover {
    border-color: #007cba;
    color: #007cba;
    transform: translateY(-2px);
}

.agorabe-action-btn .btn-icon {
    font-size: 1.2rem;
}

/* Save for Later Button (Future Enhancement) */
.save-for-later {
    opacity: 0.7;
    pointer-events: auto;
}

.save-for-later:hover {
    opacity: 1;
}

/* Clear Cart Button Styling */
.clear-cart-btn {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.clear-cart-btn:hover {
    background: #f5c6cb;
    transform: translateY(-1px);
}

/* Save Cart Button Styling */
.save-cart-btn {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.save-cart-btn:hover {
    background: #bee5eb;
    transform: translateY(-1px);
}

/* Payments on checkout page */
#payment .woocommerce-terms-and-conditions-wrapper {
    display:none;
}
#payment .fusion-button {
  width: 100%;
  background: #22b573 !important;
}

/* Responsive Enhanced Cart Design */
@media (max-width: 1024px) {
    .agorabe-cart-header-enhanced {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .cart-stats {
        justify-content: center;
    }

    .cart-item-card {
        grid-template-columns: 100px 1fr 120px;
        gap: 1rem;
    }

    .cart-item-actions-enhanced {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }

    .progress-steps {
        gap: 1rem;
    }

    .summary-stats {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .agorabe-enhanced-cart-container {
        padding: 1rem;
        padding: 20px 0px 10px;
    }

    .agorabe-cart-header-enhanced {
        padding: 1.5rem;
    }

    .cart-title-section .cart-title {
        font-size: 1.5rem;
    }

    .cart-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .cart-item-card {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .cart-item-total-enhanced {
        grid-column: 1 / -1;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        margin-top: 7px;
        padding-top: 10px;
        border-top: 1px solid #f8f9fa;
    }

    .cart-item-actions-enhanced {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .empty-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .agorabe-action-btn {
        justify-content: center;
    }

    .coupon-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .coupon-input {
        width: 100%;
    }

    .cart-update-section {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .summary-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cart-quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .progress-step .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .progress-step .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cart-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cart-stats .stat-item {
        padding: 1rem;
        background: white;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .cart-item-image {
        justify-self: center;
        width: 120px;
    }

    .product-meta-enhanced .meta-item {
        justify-content: center;
    }

    .quantity-display,
    .unit-price {
        justify-content: center;
    }

    .line-total {
        text-align: center;
    }

    .cart-item-actions-enhanced {
        flex-direction: row;
        gap: 0.5rem;
    }

    .progress-steps {
        flex-direction: row;
        gap: 1rem;
    }

    .progress-steps::before {
        display: none;
    }

    .summary-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Enhanced Cart Specific Button Styles */
.agorabe-enhanced-cart-form .agorabe-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.agorabe-enhanced-cart-form .agorabe-cart-edit-btn {
  background: #fff !important;
  border: 2px solid #22b573;
  color: #22b573 !important;
}

.agorabe-enhanced-cart-form .agorabe-cart-edit-btn:hover {
  background: #999 !important;
  border: 2px solid #999;
  color: #fff !important;
}

.agorabe-enhanced-cart-form .agorabe-cart-remove-btn {
  background: #22b573;
  border: none;
  color: #ffffff;
}

.agorabe-enhanced-cart-form .agorabe-btn-primary {
    background: #007cba;
    color: white;
}

.agorabe-enhanced-cart-form .agorabe-btn-primary:hover {
    background: #0056b3;
}

.agorabe-enhanced-cart-form .agorabe-btn-danger {
    background: #dc3545;
    color: white;
}

.agorabe-enhanced-cart-form .agorabe-btn-danger:hover {
    background: #c82333;
}

.agorabe-enhanced-cart-form .agorabe-btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.agorabe-enhanced-cart-form .agorabe-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Integration with Existing Modal System */
.agorabe-enhanced-cart-container .cart-item-card .agorabe-cart-edit-btn,
.agorabe-enhanced-cart-container .cart-item-card .agorabe-cart-remove-btn {
    /* Ensure existing AJAX modal functionality is preserved */
    cursor: pointer;
    transition: all 0.2s ease;
}

.agorabe-enhanced-cart-container .cart-item-card .agorabe-cart-edit-btn:hover,
.agorabe-enhanced-cart-container .cart-item-card .agorabe-cart-remove-btn:hover {
    transform: translateY(-1px);
}

/* Future Enhancement Placeholders */
.empty-cart-suggestions {
    /* Placeholder for recommended products */
}

.cart-recommendations {
    /* Placeholder for cart-based recommendations */
    margin-top: 2rem;
}

.cart-savings-summary {
    /* Placeholder for total savings display */
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}


/* Cart Recommendations Section */
.agorabe-cart-recommendations {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendations-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recommendations-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.recommendations-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.recommendation-image {
    position: relative;
    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.05);
}

.recommendation-sale-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.recommendation-info {
    padding: 1.25rem;
}

.recommendation-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.recommendation-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation-title a:hover {
    color: #007cba;
}

.recommendation-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.recommendation-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.recommendation-meta .meta-icon {
    font-size: 0.9rem;
}

.recommendation-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 1rem;
}

.recommendation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.quick-add-to-cart {
    background: #28a745;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.quick-add-to-cart:hover {
    background: #218838;
    transform: translateY(-1px);
}

.out-of-stock-notice {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: #f8d7da;
    border-radius: 6px;
}

.no-recommendations {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-recommendations p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

/* Recommendations Responsive */
@media (max-width: 768px) {
    .agorabe-cart-recommendations {
        padding: 1.5rem;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .recommendation-image img {
        height: 150px;
    }
    
    .recommendation-info {
        padding: 1rem;
    }
    
    .recommendation-actions {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-image img {
        height: 180px;
    }
}


/* ========================================
   ENHANCED SEARCH SYSTEM STYLES
   ======================================== */

/* Search Container */
.agorabe-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search Header (Dashboard Style) */
.agorabe-search-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.search-title-section {
    display: none;
}

.search-title-section .search-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.search-subtitle {
    color: #6c757d;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Search Form */
.agorabe-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-input-group input {
  font-size: 18px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

.search-input-group:focus-within {
    border-color: #007cba;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: transparent;
    color: #2c3e50;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-submit {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Search Results Header */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Search Results List (Using Shop List Design) */
.agorabe-search-list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-list-item {
    /* Inherits shop-list-item styles - matches shop list view exactly */
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.search-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ensure search results inherit all shop list item styles */
.agorabe-search-list-view .product-price {
    text-align: center;
    font-weight: 600;
    color: #d32109;
    font-size: 28px;
    font-weight: bold;
}

.agorabe-search-list-view .product-price .amount {
    color: #d32109;
}

.agorabe-search-list-view .product-stock .stock-info {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    border: 1px solid #22B573 !important;
    font-size: 10px;
}

.agorabe-search-list-view .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    padding: 0px;
    background: none;
}

.agorabe-search-list-view .qty-decrease,
.agorabe-search-list-view .qty-increase {
    background: #22B573;
    color: white;
    border: none;
    width: 65px;
    height: 50px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Search Pagination */
.agorabe-search-pagination {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    border-radius: 6px;
    overflow: hidden;
}

.pagination-item a,
.pagination-item span {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #495057;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pagination-item a:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-item .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* No Results State */
.agorabe-search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.no-results-description {
    color: #6c757d;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.no-results-suggestions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.no-results-suggestions h4 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.search-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    padding: 0.25rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.search-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Initial Search State */
.agorabe-search-initial {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.initial-search-content {
    max-width: 400px;
    margin: 0 auto;
}

.search-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.search-welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.search-welcome-description {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Search Disabled State */
.agorabe-search-disabled {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-weight: 500;
}

/* Responsive Search Design */
@media (max-width: 768px) {
    .agorabe-search-container {
        padding: 1rem;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .agorabe-search-header {
        padding: 1.5rem;
    }
    
    .search-title-section .search-title {
        font-size: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
        gap: 0.5rem;
    }
    
    .search-input {
        text-align: center;
    }
    
    .search-submit {
        width: 100%;
        border-radius: 8px;
    }
    
    .search-results-header {
        flex-direction: column;
        *gap: 1rem;
        text-align: center;
    }
    
    .search-list-item {
        grid-template-columns: 1fr 2fr auto;  /* Match shop list view mobile layout */
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .agorabe-search-list-view .qty-decrease,
    .agorabe-search-list-view .qty-increase {
        width: 50px;
        height: 38px;
        font-size: 1rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-input-group {
        padding: 0.25rem;
    }
    
    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-submit .btn-text {
        display: none;
    }
    
    .search-submit {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .results-title {
        font-size: 16px !important;
    }
    
    .pagination-item a,
    .pagination-item span {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Search Integration with Shop List */
.agorabe-search-list-view .floating-add-to-cart {
    /* Uses existing floating button styles */
    position: fixed;
    bottom: 75px !important;
    left: 2rem;
    z-index: 1000;
}

.agorabe-search-list-view .login-required-notice {
    /* Uses existing login gating styles */
    margin-top: 0.5rem;
}

.agorabe-search-list-view .out-of-stock-notice {
    text-align: center;
    padding: 0.75rem;
    background: #f8d7da;
    border-radius: 6px;
    color: #721c24;
    font-weight: 500;
}

.stock-notice {
    font-size: 0.9rem;
}

/* Search Feature Status Indicators (for admin) */
.search-feature-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.search-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.search-status-enabled {
    background: #d4edda;
    color: #155724;
}

.search-status-disabled {
    background: #f8d7da;
    color: #721c24;
}

.search-status-partial {
    background: #fff3cd;
    color: #856404;
}
