/* Products Listing Page Styles */

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    padding: 25px 20px;
    border-bottom: 1px solid #D4AF37;
    margin: 0;
    border-radius: 0;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #D4AF37;
    border-radius: 25px;
    font-size: 16px;
    background: #ffffff;
    color: #1A4D2A;
    outline: none;
    transition: all 0.3s ease;
}

#search-input:focus {
    border-color: #F4D03F;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.search-icon, .clear-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-search-icon {
    right: 50px;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.search-icon:hover {
    color: #F4D03F;
}

.clear-search-icon:hover {
    color: #ffffff;
    background: #dc3545;
}

/* Search Results Info */
.search-results-info {
    margin-top: 15px;
    text-align: center;
    color: #ffffff;
}

.search-results-info p {
    margin: 5px 0;
    font-size: 14px;
}

.search-results-info p:first-child {
    font-weight: 500;
}

.search-results-info p:last-child {
    opacity: 0.8;
    font-size: 13px;
}

/* Results Header */
.results-header {
    padding: 20px 20px 10px 20px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #1A4D2A;
    margin: 0;
}

.results-count {
    font-size: 14px;
    color: #D4AF37;
    font-weight: 500;
}

/* Products Main */
.products-main {
    padding: 20px 20px 100px 20px;
    background: #ffffff;
}

/* Product Sections */
.product-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
}

.section-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #1A4D2A;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 14px;
    color: #D4AF37;
    font-weight: 400;
}

.see-all-btn {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    border: 2px solid #1A4D2A;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.see-all-btn:hover {
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 42, 0.4);
}

/* Products Scroll Container */
.products-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    position: relative;
    touch-action: pan-x pan-y;
}

.products-scroll-container::-webkit-scrollbar {
    display: none;
}

.products-scroll {
    display: flex;
    gap: 15px;
    padding: 0 0 10px 0;
    min-width: max-content;
    width: max-content;
}

/* Product Cards for Scroll */
.products-scroll .product-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #1A4D2A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-width: 160px;
    flex-shrink: 0;
}

.products-scroll .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
}

.products-scroll .product-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.products-scroll .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A4D2A;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-volume {
    font-size: 12px;
    color: #D4AF37;
    margin-bottom: 6px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #D4AF37;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
}

/* Product Item */
.product-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #1A4D2A;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to visible to allow overlays */
}

.product-image-container .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image-container .product-image {
    transform: scale(1.05);
}

/* Add to Cart Button */
.add-to-cart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    border: 2px solid #1A4D2A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    color: #D4AF37;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 77, 42, 0.4);
}

/* Product Info */
.product-info {
    text-align: left;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A4D2A;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-volume {
    font-size: 12px;
    color: #D4AF37;
    font-weight: 500;
}

/* Top Navigation Updates */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-cart-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}

.cart-icon {
    position: relative;
    color: #D4AF37;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #F4D03F;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
    border: 2px solid #1A4D2A;
}

/* Responsive Design */
@media (max-width: 480px) {
    .search-section {
        padding: 12px 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    #search-input {
        padding: 10px 45px 10px 12px;
        font-size: 14px;
    }
    
    .results-header {
        padding: 15px 15px 8px 15px;
    }
    
    .results-header h2 {
        font-size: 18px;
    }
    
    .results-count {
        font-size: 12px;
    }
    
    .products-main {
        padding: 0 15px 100px 15px;
    }
    
    .product-section {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .products-scroll {
        gap: 12px;
    }
    
    .product-card {
        min-width: 140px;
        padding: 12px;
    }
    
    .products-scroll .product-image {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-volume {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .products-grid {
        gap: 12px;
        padding: 8px 0;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-image-container {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .add-to-cart-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        gap: 10px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .product-image-container {
        height: 90px;
    }
    
    .product-name {
        font-size: 12px;
    }
}

/* Loading Animation */
.product-item {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Focus states for accessibility */
#search-input:focus,
.add-to-cart-btn:focus,
.product-item:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Empty state */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #b8860b;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e6c200;
}

.no-products h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #8b4513;
}

.no-products p {
    font-size: 14px;
    color: #b8860b;
}

/* Product Catalog Page Styles */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    color: white;
    margin: 0;
    border-radius: 0;
}

/* Override main content padding for catalog page */
body:has(.page-header) .main-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Alternative override for browsers that don't support :has() */
.product-catalog-page .main-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure no gaps between sections */
.page-header,
.search-section,
.results-header,
.products-section {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Remove any default margins from body and html */
body, html {
    margin: 0;
    padding: 0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #D4AF37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 18px;
    color: #F4D03F;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 100px 15px 20px;
    border: 2px solid #D4AF37;
    border-radius: 30px;
    font-size: 16px;
    background: #ffffff;
    color: #1A4D2A;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #F4D03F;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.filter-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #D4AF37;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.filter-btn i {
    font-size: 16px;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #F4D03F, #D4AF37);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.search-btn i {
    color: #1A4D2A;
    font-size: 16px;
}

/* Filter Dropdown */
.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #D4AF37;
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.filter-row label {
    font-size: 14px;
    font-weight: 600;
    color: #1A4D2A;
    min-width: 80px;
}

.filter-select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #D4AF37;
    border-radius: 20px;
    font-size: 14px;
    background: #ffffff;
    color: #1A4D2A;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.filter-select:focus {
    border-color: #F4D03F;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 3px 10px rgba(0, 0, 0, 0.15);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}

.results-info {
    display: flex;
    align-items: center;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    font-size: 16px;
}

.view-btn:hover {
    background: #e9ecef;
    border-color: #D4AF37;
    color: #D4AF37;
}

.view-btn.active {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    border-color: #D4AF37;
    color: #1A4D2A;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.view-btn.active:hover {
    background: linear-gradient(135deg, #F4D03F, #D4AF37);
    transform: scale(1.05);
}

.results-count {
    font-size: 14px;
    color: #666666;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-section {
    padding: 30px 20px 100px 20px;
    margin: 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: #D4AF37;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.products-grid .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.products-grid .product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1A4D2A;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-volume {
    font-size: 14px;
    color: #666666;
    margin: 0 0 12px 0;
    font-weight: 400;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #D4AF37;
    margin: 0;
}

/* Responsive Design for Product Catalog */
@media (max-width: 768px) {
    .page-header {
        padding: 25px 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .search-container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .search-input {
        padding: 12px 80px 12px 16px;
        font-size: 14px;
    }
    
    .filter-btn {
        width: 38px;
        height: 38px;
        right: 45px;
    }
    
    .search-btn {
        width: 38px;
        height: 38px;
    }
    
    .filter-dropdown {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-row label {
        min-width: auto;
        font-size: 13px;
    }
    
    .filter-select {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .results-header {
        padding: 15px 20px;
    }
    
    .products-section {
        padding: 20px 15px 100px 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .products-grid .product-image {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .search-container {
        padding: 0 10px;
    }
    
    .search-input {
        padding: 10px 70px 10px 14px;
        font-size: 14px;
    }
    
    .filter-btn {
        width: 30px;
        height: 30px;
        right: 40px;
    }
    
    .filter-btn i {
        font-size: 14px;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
    }
    
    .search-btn i {
        font-size: 14px;
    }
    
    .filter-dropdown {
        padding: 12px;
    }
    
    .filter-select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .results-header {
        padding: 12px 15px;
    }
    
    .products-section {
        padding: 15px 10px 100px 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .products-grid .product-image {
        height: 140px;
        margin-bottom: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-volume {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Out of Stock Styles for Products Page */
.product-card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.4);
    position: relative;
    cursor: not-allowed;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #dc3545;
}

.product-card.out-of-stock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

/* Out of Stock Overlay for Products Page */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 4;
    backdrop-filter: blur(2px);
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Ensure proper containment */
    contain: layout style paint;
}

.out-of-stock-overlay span {
    color: white;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Restock Timer Styles for Products Page */
.restock-timer {
    text-align: center;
    margin-top: 4px;
    color: #fff;
    font-size: 8px;
    font-weight: 400;
    background: none;
    border: none;
    padding: 0;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.2;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.restock-timer .timer-days,
.restock-timer .timer-hours,
.restock-timer .timer-minutes {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
}

.restock-message {
    color: #fff;
    font-size: 8px;
    font-weight: 400;
    margin-top: 4px;
    text-align: center;
    opacity: 0.8;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.2;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Out of Stock Product Info for Products Page */
.product-card.out-of-stock .product-info {
    position: relative;
    z-index: 2;
}

.product-card.out-of-stock .product-name {
    color: #6c757d;
    text-decoration: line-through;
}

.product-card.out-of-stock .product-price {
    color: #dc3545;
    font-weight: bold;
}

.product-card.out-of-stock .product-price::after {
    content: ' - Sold Out';
    font-size: 10px;
    color: #dc3545;
    font-weight: normal;
}

/* List View Styles */
.products-list {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.product-list-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-list-item:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.product-list-item.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.3);
    cursor: not-allowed;
}

.product-list-item.out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #dc3545;
}

.list-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

.list-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1A4D2A;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-volume {
    font-size: 13px;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

.list-item-price {
    margin: 0;
}

.list-item-price .price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item-price .sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #D4AF37;
}

.list-item-price .original-price {
    font-size: 14px;
    color: #999999;
    text-decoration: line-through;
}

.list-item-price .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #D4AF37;
}

.list-item-status {
    margin-top: 4px;
}

.out-of-stock-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 12px;
}

/* List View Badges */
.list-flash-sale-badge,
.list-sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-sale-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Responsive Design for List View */
@media (max-width: 768px) {
    .list-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .list-item-name {
        font-size: 15px;
    }
    
    .list-item-price .sale-price,
    .list-item-price .current-price {
        font-size: 16px;
    }
    
    .list-item-price .original-price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-list-item {
        padding: 10px 12px;
    }
    
    .list-item-name {
        font-size: 14px;
    }
    
    .list-item-volume {
        font-size: 12px;
    }
    
    .list-item-price .sale-price,
    .list-item-price .current-price {
        font-size: 15px;
    }
    
    .view-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}