/* Base Styles */
:root {
    --primary-color: #000;
    --accent-color: #0071e3;
    --secondary-accent: #ff3b30;
    --text-light: #fff;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #fff;
    --border-color: #d2d2d7;
    --transition-speed: 0.3s;
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: all var(--transition-speed);
}

input {
    font-family: inherit;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    margin-right: 10px;
}

.burger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.burger-line {
    background-color: var(--text-light);
    border-radius: 2px;
    display: block;
    height: 2px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Fixed header layout */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* Group burger menu and cart icon together */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ensure burger menu is visible on mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: block !important; /* Force display */
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 70px;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    nav ul {
        flex-direction: column;
        padding: 0 20px;
    }

    nav ul li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 70px;   /* Adjust as needed */
    width: auto;
    display: block;
	padding-left:10px;
}

.logo-text {
    font-size: 1.5rem; 
   /* font-weight: bold; */
    color: #ffffff;
    letter-spacing: 0.0px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 14px;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-light);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Content */
main {
    margin-top: 70px;
    padding: 30px 0;
    min-height: calc(100vh - 70px - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
   /* background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%); */
  /* background-image: url('./images/background_images/pexels-thepaintedsquare-189378.jpg'); 
  background-image: url('./images/background_images/pexels-njeromin-12734294.jpg');
  pexels-njeromin-12734294.jpg /mountains
  pexels-timmossholder-3612930.jpg
  */
  
  /*background-image: 
  linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
  url('./images/background_images/pexels-timmossholder-3612930.jpg'); */
  background-image:   
  linear-gradient(rgba(64, 123, 172, 0.507), rgba(0, 0, 0, 0.5)), 
  url('./images/background_images/pexels-njeromin-19400416.webp');
   background-size: cover;
   background-position: center;
    color: var(--text-light);
    margin-bottom: 40px;
    border-radius: 12px;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Filters */
.filters {
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.filter-container {

    background-image: 
    linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 1rem; 
}
.product-view {
    background-image: 
    linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 1rem; 

}
.product-info-detailed {
    background-color:#ffff; 
    background-size: cover;
    background-position: center;
    flex-grow: 1;
    padding: 2rem; 
    border-radius: 1rem; 
    box-shadow: var(--shadow-small);
    height: 536px; /* Match main-image height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;

}

.filter-dropdown {
    position: relative;
    z-index: 100;
}

.filter-btn {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.filter-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    width: 180px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-speed), opacity var(--transition-speed);
    margin-top: 5px;
    z-index: 101;
}

.filter-dropdown:hover .filter-content {
    max-height: 300px;
    opacity: 1;
}

.filter-content a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 14px;
    transition: background-color var(--transition-speed);
}

.filter-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-tag {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.products-grid {
    /* background-image: url('./images/background_images/pexels-anna-nekrashevich-7946555.jpg'); 
    background-image: url('./images/background_images/pexels-sean-whang-25006-804269.jpg');
    background-image: url('./images/background_images/pexels-jeremy-bishop-1260133-2397652 (1).jpg');
    background-image: url('./images/background_images/pexels-thepaintedsquare-189378.jpg');
    background-image: url('./images/background_images/pexels-njeromin-19400416.jpg');
    background-image: url('./images/background_images/pexels-mahdibafande-14128008.jpg');
    background-image: url('./images/background_images/pexels-eva-bronzini-7630064.jpg');
    url('./images/background_images/pexels-ian-panelo-3087565.jpg');
    url('./images/background_images/pexels-njeromin-19400416.jpg');
    pexels-jeremy-bishop-1260133-2397652 (1).jpg
    pexels-thepaintedsquare-189378.jpg
    pexels-njeromin-19400416.jpg
    pexels-mahdibafande-14128008.jpg
    pexels-martinpechy-304664.jpg
    pexels-scottwebb-2824173.jpg
    */
    
    background-image: 
    linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 1rem; 
}

/*
.products-grid {
    position: relative;
    background-color: #f7fbff;
    background-image: 
      radial-gradient(circle at 20px 20px, #5394fd22 2px, transparent 0),
      radial-gradient(circle at 60px 60px, #5394fd22 2px, transparent 0);
    background-size: 80px 80px;
    padding: 2rem;
    border-radius: 1rem;
    overflow: hidden;
  }
  
  .products-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(83, 148, 253, 0.08); 
    pointer-events: none;
    z-index: 1;
  }
*/

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    min-height: 450px;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.product-badge.sale {
    background-color: var(--secondary-accent);
    color: var(--text-light);
}

.product-badge.new {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.product-img {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

/* Make product-info a flex container with column direction */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    z-index: 1;
    justify-content: space-between;
}
/* Make description take up available space, pushing actions to bottom */
.product-info .description {
    margin-bottom: 15px;
    flex-grow: 1;
    min-height: 60px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-gray);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    padding-bottom: 10px;
}

.original-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
}

/* Style the product actions to stick to bottom */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.view-btn {
    padding: 8px 15px;
    background-color: var(--accent-color);;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    flex-grow: 1;
}
.view-btn {
    flex-grow: 1;
    text-align: center;
    display: flex;

}
/* Product condition labels */
.new-btn-2, .secondhand-btn-2 {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.new-btn-2 {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    margin-top: 5px;
}

.secondhand-btn-2 {
    background-color: rgba(27, 29, 37, 0.1);
    color: #606075;
    border-left: 3px solid #606075;
    border-right: 3px solid #606075;
    margin-top: 5px;
}

/* Add subtle transition */
.new-btn, .secondhand-btn-2 {
    transition: transform 0.2s ease;
}

.new-btn:hover, .secondhand-btn-2:hover {
    transform: translateX(2px);
}
/*Old new and second hand Buttons*/
.new-btn {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    margin-top: 5px;
}

.secondhand-btn {
    background-color: rgba(27, 29, 37, 0.1);
    color: #606075;
    border-left: 3px solid #606075;
    border-right: 3px solid #606075;
    margin-top: 5px;
}

/* Add subtle transition */
.new-btn, .secondhand-btn {
    transition: transform 0.2s ease;
}

.new-btn:hover, .secondhand-btn:hover {
    transform: translateX(2px);
}
/* Additional improvements to prevent hidden elements */
.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

.view-btn, .add-to-cart-btn {
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
}

.view-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.add-to-cart-btn:hover {
    background-color: var(--accent-color);
}

.add-to-cart-btn i {
    font-size: 16px;
}

/* Product Details Page */
.product-details {
    padding: 20px 0 40px;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    transition: color var(--transition-speed);
}

.back-link a:hover {
    color: var(--accent-color);
}

/* Product View Layout - Equal Heights */
.product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Product Images Layout */
.product-images {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    height: 100%;
}

/* Vertical Thumbnail Gallery */
.thumbnail-gallery.vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 23px;
    width: 80px;
    flex-shrink: 0;
}

.thumbnail-gallery.vertical-gallery .thumbnail {
    width: 80px;
    height: 80px;
    padding-top: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-white);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-gallery.vertical-gallery .thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-gallery.vertical-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
/*
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}
*/
/*
.product-info-detailed {
    position: relative;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 20px;
    padding-bottom: 80px; 
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
*/
/* Product Info Detailed - Match height */
.product-info-detailed {
    background-color: #ffff;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-small);
    height: 500px; /* Match main-image height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-info-detailed::-webkit-scrollbar {
    width: 6px;
}

.product-info-detailed::-webkit-scrollbar-track {
    background: transparent;
}

.product-info-detailed::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.product-info-detailed::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.product-options {
    display: flex;
    flex-direction: column; /* Changed from flex-wrap to column */
    gap: 20px;
    margin-bottom: 10px;
}

.option-group {
   /* flex: 1;
    min-width: 200px; */
    width: 100%; /* Take full width instead of flex: 1 */
    margin-bottom: 1px;
}

.option-group h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px white;
}

.storage-options {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for storage options */
    gap: 8px;
}

.storage-option {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.storage-option:hover {
    border-color: var(--accent-color);
    background-color: rgba(0, 113, 227, 0.05);
}

.storage-option.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.product-actions-detailed {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    
    background-color: var(--bg-white);    
    padding: 15px 0px; /* Increased padding */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1px;
    z-index: 10;
    margin-top: auto;    
    /* Add these properties to ensure solid background */

   /* box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05); /* Optional: adds subtle shadow */
}

.quantity-selector {
    height: 44px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 44px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#product-quantity {
    width: 44px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.add-to-cart-btn-large {
    flex-grow: 1;
    height: 44px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.add-to-cart-btn-large:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Custom scrollbar styling for WebKit browsers */
.product-info-detailed::-webkit-scrollbar {
    width: 6px;
}

.product-info-detailed::-webkit-scrollbar-track {
    background: transparent;
}

.product-info-detailed::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.product-info-detailed::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-view {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 0;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .product-images {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding-left: 0;
    }
    
    .product-info-detailed {
        height: auto;
        max-height: none;
        overflow-y: visible;
        position: absolute; /* Add this */
        z-index: 1; /* Set proper stacking context */
    }
    /* Thumbnails on top */
    .thumbnail-gallery.vertical-gallery {
        order: 1;
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
        padding-bottom: 10px;
        padding-top: 10px;

        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Main image below thumbnails */
    .main-image {
        order: 2;
        height: 400px;
        width: 100%;
        position: relative; /* Keep relative positioning */
    }
    
    .product-info-detailed {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .thumbnail-gallery.vertical-gallery .thumbnail {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .main-image {
        height: 350px;
    }
    
    .product-info-detailed {
        padding: 1.5rem;
    }
    
    .thumbnail-gallery.vertical-gallery .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    /* Scrollbar styling for mobile */
    .thumbnail-gallery.vertical-gallery::-webkit-scrollbar {
        height: 6px;
    }
    
    .thumbnail-gallery.vertical-gallery::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .thumbnail-gallery.vertical-gallery::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
    .product-options {
        gap: 15px;
    }
    /*
    .option-group {
        min-width: 160px;
    }
   */
    .storage-options {
        gap: 6px;
    }
    .storage-option {
        padding: 5px 10px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }
    
    .thumbnail-gallery.vertical-gallery .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .thumbnail-gallery.vertical-gallery .thumbnail img {
        padding: 4px;
    }
    .add-to-cart-btn-large .btn-text {
        display: none;
    }
}
/* Remove all the conflicting absolute positioning styles from responsive queries */
@media (max-width: 992px) {
    .product-images,
    .main-image,
    .product-info-detailed {
        position: relative !important; /* Force relative positioning */
        display: block !important;
        z-index: auto !important;
    }
}
/*
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
*/
.product-images {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    height: 100%; /* Ensure both columns stretch to same height */
}
/* Main Image Container */
.main-image {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 500px;
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.main-image img.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    transition: transform 0.3s ease;
}
/*
.main-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; 
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    margin-bottom: 20px;
}
*/

.main-image img.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows entire product without cropping */
    padding: 30px; /* Provides space around the product */
    transition: transform 0.3s ease;
}
/*
.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
    */

    .thumbnail-gallery {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    
    .thumbnail {
        position: relative;
        width: 100%;
        padding-top: 100%; /* Creates perfect square aspect ratio */
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        background-color: var(--bg-white);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .thumbnail.active {
        border-color: var(--accent-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .thumbnail img.product-thumbnail {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Contains the entire image within the square */
        padding: 8px; /* Adds some padding so the image doesn't touch the edges */
        transition: transform 0.3s ease;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .thumbnail img.product-thumbnail {
        padding: 4px;
    }
}

.thumbnail:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.product-info-detailed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info-detailed h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fd9a16;
}

.product-rating span {
    color: var(--text-gray);
    font-size: 14px;
    margin-left: 5px;
}

.product-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

.product-specs h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-specs li::before {
    content: '•';
    color: var(--accent-color);
}

.product-actions-detailed {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 120px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color var(--transition-speed);
}

.qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#product-quantity, .cart-quantity {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
}

#product-quantity::-webkit-inner-spin-button,
#product-quantity::-webkit-outer-spin-button,
.cart-quantity::-webkit-inner-spin-button,
.cart-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn-large {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 25px;
    padding: 0 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    height: 40px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.add-to-cart-btn-large:hover {
    background-color: var(--accent-color);
}

.add-to-cart-btn-large .btn-icon {
    margin-left: 5px;
}

.product-extras {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-info, .warranty-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Cart Page */
.cart-section {
    margin-top: 20px;
    background-image: 
    linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;
    padding: 1rem;
    border-radius: 1rem; 
}

.cart-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.cart-empty i {
    font-size: 60px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.continue-shopping-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.continue-shopping-btn:hover {
    background-color: var(--accent-color);
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-table {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1fr 1fr 1fr 1fr 1fr 0.5fr;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
    text-align: center;
}

.cart-items {
    padding: 10px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1fr 1fr 1fr 1fr 1fr 0.5fr;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    font-size: 14px;
    text-align: center;
}

.cart-col.product-col {
    text-align: left;
}

.cart-actions {
    display:block;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.clear-cart-btn, .calculate-delivery-btn {
    padding: 10px 15px;
    border-radius: 25px;
    display:block;
   /* display: flex; */
    width: 250px;
    padding-bottom: 10px;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.clear-cart-btn {
    background-color: #f8f8f8;
    color: #d9534f;
    border: 1px solid #d9534f;
}

.clear-cart-btn:hover {
    background-color: #d9534f;
    color: white;
}

.calculate-delivery-btn {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.calculate-delivery-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 1200px) {
    .cart-header, .cart-item {
        font-size: 12px;
        padding: 12px 10px;
    }
}

@media (max-width: 992px) {
    .cart-table {
        overflow-x: auto;
        display: block;
    }

    .cart-header, .cart-item {
        width: 1200px;
    }
}

@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
    }

    .clear-cart-btn, .calculate-delivery-btn, .checkout-btn {
        width: 100%;
        justify-content: center;
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-info img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-product-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-product-info p {
    font-size: 14px;
    color: var(--text-gray);
}

.remove-item-btn {
    color: var(--secondary-accent);
    font-size: 18px;
    transition: color var(--transition-speed);
}

.remove-item-btn:hover {
    color: var(--secondary-accent);
}

.cart-bottom {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.coupon-section {
    display: flex;
    gap: 10px;
}

.coupon-section input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.apply-coupon-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color var(--transition-speed);
}

.apply-coupon-btn:hover {
    background-color: var(--accent-color);
}

.cart-summary {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-small);
    height: 100%;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.total-row {
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.checkout-btn {
    width: 250px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 25px;      
    display:block;
    align-items: center;  
    gap: 8px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: var(--accent-color);
}

.continue-shopping-link {
    display: block;
    padding-left: 10px;
    text-align: left;    
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-section ul li a:hover {
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 18px;
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes fadeInCard {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation Classes */
.fade-in {
    animation: fadeInCard 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes fadeInCard {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

.view-btn, .add-to-cart-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-view {
        grid-template-columns: 1fr;
    }
    
    .cart-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 16px;
        display: block;
        padding: 10px 0;
    }

    .burger-btn.active .burger-line:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .burger-btn.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.active .burger-line:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-small);
        background-color: var(--bg-white);
    }

    .cart-col {
        display: flex;
        justify-content: space-between;
        align-items: left;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 70%;
    }

    .cart-col:last-child {
        border-bottom: none;
    }

    .cart-col:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        padding-right: 10px;
        flex-shrink: 0;
        width: 30%;
    }

    .cart-col.product-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-col.product-col:before {
        margin-bottom: 10px;
    }

    .cart-product-info {
        width: 100%;
    }

    .quantity-selector {
        width: 100px;
    }

    .cart-quantity {
        width: 100%;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
    }

    .remove-item-btn {
        width: 100%;
        color: var(--secondary-accent);
        font-size: 16px;
    }

    .cart-col.line-total-col {
        width: 100%;
        font-weight: 600;
        background-color: rgba(0,0,0,0.02);
        border-radius: 4px;
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    /* Hide table headers if you have them */
    .cart-header {
        display: none !important;
    }

    .cart-item {
        display: flex;
        flex-direction: column;        
        gap: 12px;
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-small);
        background-color: var(--bg-white);
    }

    .cart-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        font-size: 1rem;
        position: relative;
    }

    .cart-col:last-child {
        border-bottom: none;
    }

    .cart-col:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        padding-right: 10px;
        flex-shrink: 0;
        width: 20%;
        text-align: left;
        display: block;
    }

    .cart-col.product-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cart-col.supplier-col{

        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cart-col.condition-col{
        
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cart-col.stock-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.order-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.price-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.prod-total-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.delivery-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.delivery-total-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.line-total-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    .cart-col.action-col{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; 
    }
    
    .cart-col.product-col:before {
        margin-bottom: 4px;
    }

    .cart-product-info {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cart-product-info img {
        width: 60px;
        height: 60px;
        object-fit:contain;
        border-radius: 6px;
    }

    .cart-product-info h3 {
        font-size: 1rem;
        margin: 0;
    }

    .quantity-selector {
        width: 100px;
        min-width: 80px;
    }

    .cart-quantity {
        width: 100%;
    }

    .qty-btn {
        width: 30px;       
        height: 30px;
    }

    .remove-item-btn {
        flex-direction: column;
        align-items: left;
        width: 5%;
        color: var(--secondary-accent);
        font-size: 16px;
    }

    .cart-col.line-total-col {
        width: 100%;
        font-weight: 600;
        background-color: rgba(0,0,0,0.02);
        border-radius: 4px;
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .cart-col:before {
        width: 50%;
        font-size: 0.95rem;
    }

    .cart-product-info img {
        width: 48px;
        height: 48px;
    }

    .cart-product-info h3 {
        font-size: 0.95rem;
    }

    .cart-item {
        padding: 12px;
    }

    .quantity-selector {
        width: 100%;
        min-width: 60px;
    }
}


/* Add-to-cart button animation */
.add-to-cart-btn.adding {
    background-color: var(--accent-color);
    animation: pulse 0.6s ease-in-out;
}

/* Product Detail Page Enhancements */
.product-gallery {
    position: relative;
    overflow: hidden;
}

.main-image-container {
    position: relative;
    padding-top: 100%;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
}

.main-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
/* Enhanced image switching effect */
#main-product-image {
    transition: opacity 0.3s ease;
}

/* Add zoom effect when hovering on main product image */
.main-image:hover img.product-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 5px;
}

.thumbnail {
    position: relative;
    padding-top: 100%;    
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: translateY(-3px);
}

/* Enhance the active thumbnail indicator */
.thumbnail.active {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.color-options, .storage-options {
    margin: 20px 0;
}

.option-label {
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.color-select, .storage-select {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option, .storage-option {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option.selected, .storage-option.selected {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Enhanced Product Recommendations */
.product-recommendations {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.product-recommendations h3 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image container with fixed aspect ratio */
.recommendation-img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a perfect square */
    background-color: var(--bg-white);
    overflow: hidden;
}

/* Image sizing and positioning */
.recommendation-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures entire product is visible */
    padding: 15px; /* Adds padding around the image */
    transition: transform 0.4s ease;
}

.recommendation-card:hover .recommendation-img {
    transform: scale(1.08);
}

.recommendation-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recommendation-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-card:hover h4 {
    color: var(--accent-color);
}

.recommendation-price {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.recommendation-view-btn {
    margin-top: auto;
    padding: 8px 0;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
    text-align: center;
}

.recommendation-view-btn:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-img-container {
        padding-top: 80%; /* Slightly shorter aspect ratio on mobile */
    }
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-extras {
    animation: fadeSlide 0.3s ease forwards;
}

.image-switch {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.add-to-cart-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    animation: slideIn 0.3s ease forwards;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Enhanced Product Image Display */

/* Maintain consistent product card image container */
.product-img {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Maintains square aspect ratio */
    background-color: var(--bg-white);
}

/* Ensure product images display properly without distortion */
.product-img img.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' to show entire image */
    padding: 15px; /* Add padding so image doesn't touch edges */
    transition: transform 0.4s ease;
}

/* Enhanced hover effect that zooms without cropping */
.product-card:hover .product-img img.product-image {
    transform: scale(1.08);
}
/* Additional improvements to prevent hidden elements */
.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

/* Better badge positioning that doesn't interfere with image */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Better loading appearance */
.product-image {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Multiple Suppliers Section Styles */
/* Multiple Suppliers Container with gradient background */
.multiple-suppliers-container {
    background-image: linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 1rem;
}

/* Multiple Suppliers table container with white background */
.multiple-suppliers {
    margin-top: 50px;
    padding: 30px;
    border-radius: 12px;
    /*background-color: var(--bg-white); */
    background-image: linear-gradient(rgba(31, 51, 71, 0.05), rgba(13, 52, 83, 0.1));    
    background-size: cover;
    background-position: center;   
    box-shadow: var(--shadow-small);
}
.table-container-white {
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.multiple-suppliers h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Filter Section */
.suppliers-filter {
    margin-bottom: 25px;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-white);
}

.search-group {
    position: relative;
    flex-grow: 1;
}

#supplier-search {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--accent-color);
}

/* Suppliers Table */
.suppliers-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-small);
}

.suppliers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
/* Ensure table body has white background */
.suppliers-table tbody {
    background-color: var(--bg-white);
}

.suppliers-table thead {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.suppliers-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.suppliers-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.suppliers-table tbody tr:last-child {
    border-bottom: none;
}

/* Enhance hover effect slightly for better visibility */
.suppliers-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.09); /* Light grey hover effect */
}

/* Ensure even rows maintain consistent styling */
.suppliers-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03); /* Very subtle alternating row color */
}

.suppliers-table td {
    padding: 12px;
}

.supplier-add-btn {
    padding: 6px 12px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.supplier-add-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group, .search-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .suppliers-table {
        font-size: 13px;
    }
    
    .suppliers-table th, 
    .suppliers-table td {
        padding: 8px;
    }
}

@media (max-width: 640px) {
    /* On very small screens, create a card view instead of a table */
    .suppliers-table thead {
        display: none;
    }
    
    .suppliers-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px;
    }
    
    .suppliers-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
    }
    
    .suppliers-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }
    
    .suppliers-table td:before {
        content: attr(data-label);
        font-weight: 600;
    }
}

/* About Page Styles */
.about-hero {
    text-align: center;
    padding: 60px 0;
    /*background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%); */
    background-image:   
    linear-gradient(rgba(64, 123, 172, 0.507), rgba(0, 0, 0, 0.5)), 
    url('./images/background_images/pexels-thepaintedsquare-189378.webp');
     background-size: cover;
     background-position: center;
    color: var(--text-light);
    margin-bottom: 40px;
    border-radius: 12px;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.about-hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse .about-text {
    direction: ltr;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.mission-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.icon-container {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-container i {
    font-size: 28px;
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-section {
    margin-bottom: 60px;
    text-align: center;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.team-member h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.position {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-member p {
    padding: 0 20px 20px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-item {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-small);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
}

.testimonials-section {
    margin-bottom: 60px;
}

.testimonials-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    position: relative;
}

.quote-icon {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-location {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.about-cta {
    background-color: var(--bg-white);
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--shadow-medium);
}

.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-section,
    .team-grid,
    .stats-section,
    .testimonial-grid,
    .about-mission {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.2rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-section.reverse {
        direction: ltr;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid,
    .testimonial-grid,
    .about-mission {
        grid-template-columns: 1fr;
    }
    
    .about-cta {
        padding: 40px 20px;
    }
}

/* Contact Page Styles */
.contact-hero {
    text-align: center;
    padding: 60px 0;
    /*background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%); */
    background-image:   
    linear-gradient(rgba(64, 123, 172, 0.507), rgba(0, 0, 0, 0.5)), 
    url('./images/background_images/pexels-francesco-ungaro-396547.webp');
     background-size: cover;
     background-position: center;
    color: var(--text-light);
    margin-bottom: 40px;
    border-radius: 12px;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-form-container,
.contact-info-container {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    padding: 30px;
}

.contact-form-container h2,
.contact-info-container h2,
.map-section h2,
.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-box {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.social-connect {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.social-connect h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.social-connect p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Map Section */
.map-section {
    margin-bottom: 60px;
    text-align: center;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-small);
    overflow: hidden;
}
/* Add a subtle hover effect to the FAQ item */
.faq-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.active {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
}

/* Improve the toggle icon */
.faq-toggle {
    background-color: rgba(0, 113, 227, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    margin: 0 10px 10px 10px;
    border-radius: 0 0 8px 8px;
    text-align: left;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px; /* Adjust based on your content needs */
}


.faq-answer p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.02rem;
    margin-bottom: 10px;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 30px;
}

.form-success i {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.2rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 25px 20px;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .contact-form-container h2,
    .contact-info-container h2,
    .map-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }
}
/* Actions Container Styling */
.cart-actions-container {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-small);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}