/* ========================================
   FRONTEND ENHANCEMENTS - Aram Home Textiles
   ======================================== */

/* ========================================
   1. LAZY LOADING & SKELETON SCREENS
   ======================================== */

/* Lazy Load Image Wrapper */
.lazy-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Skeleton Screen */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #e0e0e0 20%,
            #f0f0f0 40%,
            #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    width: 100%;
    padding-top: 120%;
    background: #f0f0f0;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-title {
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 16px;
}

/* ========================================
   2. PRODUCT HOVER EFFECTS - Secondary Image
   ======================================== */

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-primary,
.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-secondary {
    opacity: 0;
    transform: scale(1.1);
}

.product-card:hover .product-image-primary {
    opacity: 0;
}

.product-card:hover .product-image-secondary {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   3. QUANTITY SELECTOR ENHANCEMENT
   ======================================== */

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-input:focus {
    outline: none;
    background: var(--bg-light);
}

/* Remove spinner arrows */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ========================================
   4. MINI CART PREVIEW
   ======================================== */

/* Mini-cart parent container must have position:relative */
.header-icon-btn[title="Cart"] {
    position: relative;
}

.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    /* Small gap */
}

/* Hover functionality for desktop */
@media (min-width: 992px) {

    .header-icon-btn[title="Cart"]:hover .mini-cart-dropdown,
    .mini-cart-dropdown:hover {
        opacity: 1;
        visibility: visible;
        display: block;
        transform: translateY(0);
    }
}

/* Show mini cart when toggled via JS (desktop hover only) */
@media (min-width: 992px) {
    .mini-cart-dropdown.show {
        opacity: 1;
        visibility: visible;
        display: block;
        transform: translateY(0);
    }
}

/* Hide mini-cart entirely on small devices to avoid layout/interaction issues */
@media (max-width: 991px) {
    .mini-cart-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

.mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mini-cart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mini-cart-item:hover {
    background: var(--bg-light);
}

.mini-cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-item-details {
    flex: 1;
}

.mini-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.mini-cart-item-qty {
    font-size: 12px;
    color: var(--text-light);
}

.mini-cart-item-remove {
    display: none !important;
}

.mini-cart-item-remove:hover {
    background: #c0392b;
    /* Darker red on hover */
    transform: scale(1.1);
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-cart-btn-view {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.mini-cart-btn-view:hover {
    border-color: var(--text-dark);
}

.mini-cart-btn-checkout {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.mini-cart-btn-checkout:hover {
    background: var(--primary-color);
    color: white;
}

.mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.mini-cart-empty-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.mini-cart-empty-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ========================================
   5. AUTOCOMPLETE SEARCH
   ======================================== */

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 5px;
}

.search-autocomplete.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-category {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-category-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.search-suggestion {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-suggestion:hover {
    background: var(--bg-light);
}

.search-suggestion-icon {
    color: var(--text-light);
    font-size: 16px;
}

.search-suggestion-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.search-suggestion-text mark {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 2px 4px;
    border-radius: 3px;
}

.search-product-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-product-item:hover {
    background: var(--bg-light);
}

.search-product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-product-details {
    flex: 1;
}

.search-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.search-product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.search-see-all {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.search-see-all a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.search-see-all a:hover {
    color: var(--secondary-color);
}

/* ========================================
   6. SEARCH HISTORY
   ======================================== */

.search-history {
    padding: 15px 20px;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-history-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

.search-history-clear {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-history-clear:hover {
    color: var(--error-color);
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-history-item:hover {
    background: var(--bg-light);
}

.search-history-icon {
    color: var(--text-light);
    font-size: 14px;
}

.search-history-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.search-history-remove {
    color: var(--text-light);
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-history-item:hover .search-history-remove {
    opacity: 1;
}

.search-history-remove:hover {
    color: var(--error-color);
}

/* ========================================
   7. ADVANCED FILTERS
   ======================================== */

.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-toggle {
    font-size: 18px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-toggle {
    transform: rotate(-180deg);
}

.filter-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section.collapsed .filter-content {
    max-height: 0;
}

/* Price Range Filter */
.price-range-slider {
    padding: 15px 0;
}

.price-range-inputs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.price-input-group {
    flex: 1;
}

.price-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 5px;
}

.price-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

/* Range Slider Styles */
.range-slider {
    position: relative;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 25px 0;
}

.range-slider-track {
    position: absolute;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 3px;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Checkbox Filters */
.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-checkbox:hover {
    background: var(--bg-light);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.filter-checkbox-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.filter-checkbox-count {
    font-size: 12px;
    color: var(--text-light);
}

/* Color Filters */
.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-filter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-filter:hover,
.color-filter.active {
    border-color: var(--text-dark);
    transform: scale(1.1);
}

.color-filter.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Size Filters */
.size-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-filter {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-filter:hover,
.size-filter.active {
    border-color: var(--text-dark);
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* Rating Filter */
.rating-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rating-filter:hover {
    background: var(--bg-light);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.rating-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #FFC107;
    font-size: 14px;
}

.rating-up {
    font-size: 12px;
    color: var(--text-light);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.active-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

.active-filter-remove {
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.active-filter-remove:hover {
    color: var(--error-color);
}

.clear-all-filters {
    color: var(--error-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clear-all-filters:hover {
    opacity: 0.8;
}

/* ========================================
   8. SEARCH RESULT COUNT & SORTING
   ======================================== */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    font-size: 16px;
    color: var(--text-dark);
}

.results-count strong {
    font-weight: 700;
    color: var(--primary-color);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--text-dark);
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* ========================================
   9. RECENTLY VIEWED PRODUCTS
   ======================================== */

.recently-viewed-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.recently-viewed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.recently-viewed-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
}

.recently-viewed-clear {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.recently-viewed-clear:hover {
    color: var(--error-color);
}

.recently-viewed-slider {
    position: relative;
}

/* ========================================
   12. YOU MAY ALSO LIKE / TRENDING
   ======================================== */

.recommendations-section {
    padding: 60px 0;
    background: white;
}

.trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.trending-badge i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.new-arrival-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* ========================================
   13. CUSTOMER REVIEWS WITH IMAGES
   ======================================== */

.reviews-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-summary {
    display: flex;
    gap: 30px;
    align-items: center;
}

.reviews-score {
    text-align: center;
}

.reviews-average {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.reviews-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 8px 0;
}

.reviews-stars i {
    color: #FFC107;
    font-size: 16px;
}

.reviews-count {
    font-size: 14px;
    color: var(--text-light);
}

.reviews-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar-label {
    font-size: 14px;
    color: var(--text-dark);
    min-width: 60px;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #FFC107;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 14px;
    color: var(--text-light);
    min-width: 40px;
    text-align: right;
}

.write-review-btn {
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Individual Reviews */
.review-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    gap: 15px;
    align-items: center;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-dark);
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--success-color);
    margin-left: 10px;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    color: #FFC107;
    font-size: 14px;
}

.review-content {
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.review-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.review-action-btn:hover {
    color: var(--text-dark);
}

.review-action-btn.active {
    color: var(--secondary-color);
}

/* Review Image Modal */
.review-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-image-modal.show {
    opacity: 1;
    visibility: visible;
}

.review-image-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.review-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

/* ========================================
   14. GUEST CHECKOUT & SAVED INFO
   ======================================== */

.checkout-guest-option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.guest-checkout-toggle {
    display: flex;
    gap: 20px;
}

.checkout-option {
    flex: 1;
    padding: 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-option:hover,
.checkout-option.active {
    border-color: var(--secondary-color);
    background: #fffbf0;
}

.checkout-option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkout-option-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* Saved Addresses */
.saved-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.saved-address-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.saved-address-card:hover,
.saved-address-card.selected {
    border-color: var(--secondary-color);
    background: #fffbf0;
}

.saved-address-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.address-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.address-default {
    font-size: 11px;
    color: var(--success-color);
    font-weight: 600;
}

.saved-address-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.address-action-btn {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.address-action-btn:hover {
    color: var(--text-dark);
}

.one-click-order {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f4d64d 100%);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(232, 197, 71, 0.3);
}

.one-click-info {
    flex: 1;
}

.one-click-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.one-click-desc {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.8;
}

.one-click-btn {
    padding: 15px 40px;
    background: var(--text-dark);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.one-click-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* ========================================
   15. ORDER STATUS ON PROFILE
   ======================================== */

.order-status-tracker {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.order-status-line {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
}

.order-status-line-progress {
    height: 100%;
    background: var(--success-color);
    transition: width 0.5s ease;
}

.order-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.order-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.order-status-step.completed .order-status-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.order-status-step.active .order-status-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.order-status-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.order-status-step.completed .order-status-label,
.order-status-step.active .order-status-label {
    color: var(--text-dark);
}

.order-status-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========================================
   16. 404 ERROR PAGE DESIGN
   ======================================== */

.error-404-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.error-404-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-404-number {
    font-size: 180px;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.error-404-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.error-404-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-404-btn {
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-404-btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.error-404-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.error-404-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.error-404-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.error-404-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.error-404-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.error-404-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.error-404-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.error-404-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
}

/* ========================================
   17. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .mini-cart-dropdown {
        width: 340px;
    }

    .filters-sidebar {
        position: static;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .order-status-steps {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mini-cart-dropdown {
        width: 100%;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .search-autocomplete {
        left: -20px;
        right: -20px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .results-sort {
        flex-direction: column;
        align-items: stretch;
    }

    .saved-addresses {
        grid-template-columns: 1fr;
    }

    .one-click-order {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }

    .error-404-number {
        font-size: 120px;
    }

    .error-404-title {
        font-size: 28px;
    }

    .error-404-actions {
        flex-direction: column;
    }

}

@media (max-width: 480px) {
    .skeleton-card {
        margin-bottom: 15px;
    }

    .quantity-selector {
        width: 100%;
    }

    .quantity-btn {
        width: 50px;
    }

    .quantity-input {
        flex: 1;
    }
}