 :root {
     --primary-orange: #ff8800;
     --primary-blue: #0056b3;
     --dark-bg: #111111;
     --light-gray: #f4f4f4;
     --text-dark: #333;
     --text-light: #666;
     --white: #ffffff;
     --border-color: #e0e0e0;
 }


 .hero-section-cart {
     position: relative;
     color: var(--white);
     padding: 100px 20px;
     text-align: center;
     overflow: hidden;
     background-attachment: fixed;
 }

 .hero-section-cart::after {
     content: "";
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(35, 33, 32, 0.55);
     /* dark transparent overlay */
     z-index: 1;
 }

 .hero-section-cart h1 {
     font-size: 2.5rem;
     font-weight: 700;
     /* margin-top: -100px; */
     position: relative;
     z-index: 2;
     /* text overlay mela irukkum */
 }


 /* Gallery Container */
 .product-gallery {
     width: 100%;
     max-width: 100%;
     /* Desktop la romba perisa pogama irukka */
     background: #fff;
     padding: 20px;
     border-radius: 16px;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.384);
     position: relative;
 }

 /* -- Main Slider Styles -- */
 .swiper-main {
     width: 100%;
     height: 550px;
     /* Main image height */
     border-radius: 12px;
     overflow: hidden;
     margin-bottom: 15px;
     position: relative;
 }

 .swiper-slide img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     /* Image stretch aagama irukka */
     display: block;
 }

 /* -- Action Icons (Heart & Share) Top Right -- */
 .action-buttons {
     position: absolute;
     top: 20px;
     right: 20px;
     z-index: 10;
     /* Slide mela theriya */
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .btn-icon {
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.9);
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     transition: 0.3s;
     color: #333;
     font-size: 18px;
 }

 .btn-icon:hover {
     background: #000;
     color: #fff;
 }

 /* -- Thumbnail Slider Styles -- */
 .swiper-thumbs {
     height: 100%;
     padding: 5px 0;
 }

 .swiper-thumbs .swiper-slide {
     width: 25%;
     height: 100%;
     opacity: 0.6;
     cursor: pointer;
     border-radius: 8px;
     overflow: hidden;
     border: 2px solid transparent;
     transition: 0.3s;
 }

 .swiper-thumbs .swiper-slide-thumb-active {
     opacity: 1;
     border-color: #000;
     /* Active slide ku border */
 }

 .swiper-thumbs img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 /* Navigation Arrows Customization */
 .swiper-button-next,
 .swiper-button-prev {
     color: #333;
     background: rgba(255, 255, 255, 0.7);
     width: 40px;
     height: 40px;
     border-radius: 50%;
     backdrop-filter: blur(4px);
 }

 .swiper-button-next:after,
 .swiper-button-prev:after {
     font-size: 18px;
     font-weight: bold;
 }

 /* -- Responsive Tweaks -- */
 @media (max-width: 600px) {
     .product-gallery {
         padding: 10px;
         max-width: 100%;
         border-radius: 0;
     }

     .swiper-main {
         height: 100%;
     }

     /* Mobile la height kammi */
     .swiper-thumbs {
         height: 100%;
     }
 }

 /* Title + Price */
 .product-title {
     font-size: 28px;
     font-weight: 600;
     color: var(--primary-color);
 }

 .product-price {
     font-size: 22px;
     color: var(--secondary-color);
     margin-top: 15px !important;
 }

 .reviews-text {
     color: #555;
     font-size: 14px;
 }

 .rating-stars span a {
     text-decoration: none;
 }

 .rating-stars i {
     font-size: 18px;
     margin-right: 2px;
 }


 .product-desc {
     color: #444;
     line-height: 1.6;
     margin-top: 15px;
 }

 .in-stock {
     font-weight: 600;
     color: var(--light-black-color);
 }

 .out-stock {
     font-weight: 600;
     color: var(--light-black-color);
 }


 /* Size Buttons */
 .size-btn {
     border: 1px solid #ddd;
     margin-right: 8px;
     padding: 6px 15px;
     font-weight: 500;
     cursor: pointer;
     background: #fff;
     color: var(--primary-blue) !important;
     transition: 0.3s;
 }

 .size-btn:hover {
     border-color: var(--primary-orange);
     color: var(--secondary-color);
 }

 .size-btn.active {
     background: var(--secondary-color);
     color: var(--white-color);
     border-color: var(--secondary-color);
 }

 /* Quantity Box */
 .quantity-box {
     display: flex;
     align-items: center;
     border: 1px solid #ddd;
     border-radius: 5px;
     overflow: hidden;
 }

 .qty-btn {
     background: var(--primary-blue);
     color: var(--white);
     border: none;
     padding: 5px 12px;
     font-weight: 600;
     cursor: pointer;
     transition: 0.3s;
 }

 .qty-btn:hover {
     background: var(--primary-orange);
 }

 .qty-input {
     width: 50px;
     border: none;
     text-align: center;
     outline: none;
 }


 /* Buttons */
 .quantity-box {
     display: flex;
     align-items: center;
     border: 1px solid #ddd;
     border-radius: 5px;
     overflow: hidden;
 }

 /* Add to Cart Button */
 .add-to-cart {
     background: var(--primary-orange);
     color: var(--white);
     font-weight: 600;
     padding: 8px 18px;
     border-radius: 5px;
 }

 .add-to-cart:hover {
     background: var(--text-light);
     color: var(--white);
 }

 /* Big Buy Now Button */
 .buy-now-big {
     background: var(--primary-blue);
     color: var(--white);
     font-weight: 700;
     padding: 14px;
     border-radius: 6px;
     font-size: 18px;
     text-align: center;
     text-decoration: none;
 }

 .buy-now-big:hover {
     background: var(--text-light);
     color: var(--white);
 }


 /* Slick Slider */
 .slider-for img {
     width: 100%;
     border-radius: 10px;
 }

 .slider-nav .slick-slide {
     margin: 0 5px;
 }

 .slider-nav img {
     border: 2px solid transparent;
     cursor: pointer;
     border-radius: 8px;
 }

 .slider-nav .slick-current img {
     border-color: var(--secondary-color);
 }

 /* Responsive */
 @media (max-width: 991px) {
     .product-title {
         font-size: 24px;
     }
 }


 /* Tabs */
 .nav-tabs .nav-link {
     font-weight: 600;
     color: var(--light-black-color);
     border: none;
     border-bottom: 3px solid transparent;
 }

 .nav-tabs .nav-link.active {
     color: var(--primary-blue);
     border-bottom: 3px solid var(--primary-blue);
 }

 /* Review Summary */
 .review-summary {
     background: #faf6f3;
     border-radius: 10px;
 }

 .avg-rating {
     font-size: 40px;
     font-weight: 700;
     color: var(--primary-color);
 }

 /* Progress Bar */
 .progress {
     height: 8px;
     background: #f1f1f1;
     border-radius: 5px;
 }

 .progress-bar {
     border-radius: 5px;
 }

 /* Review Item */
 .review-item strong {
     color: var(--primary-color);
 }

 .review-item p {
     color: #555;
     margin-bottom: 0;
 }

 .review-filter {
     background: var(--white-color);
     border-radius: 8px;
     border: 1px solid #eee;
 }

 .sort-btn {
     background: transparent;
     border: none;
     font-weight: 600;
     color: var(--secondary-color);
 }

 .sort-btn:focus {
     box-shadow: none;
 }

 .dropdown-menu {
     border-radius: 8px;
     border: 1px solid #eee;
 }

 .dropdown-item:hover {
     background: var(--secondary-color);
     color: var(--white-color);
 }


 /* Write Review */
 .write-review h5 {
     font-weight: 600;
     margin-bottom: 15px;
     color: var(--primary-color);
 }

 .btn-submit-review {
     background: var(--secondary-color);
     color: var(--white-color);
     font-weight: 600;
     padding: 10px 20px;
 }

 .btn-submit-review:hover {
     background: var(--primary-color);
     color: var(--white-color);
 }

 .btn {
     margin-top: 3px;
 }


 /* Related Products Section Start */

 .product-box {
     padding: 5px;
     border: 1px solid #c2bbbb;
     border-radius: 10px;
 }

 .product-photo {
     position: relative;
     overflow: hidden;
     border-radius: 2px;
 }

 .product-photo img {
     width: 100%;
     transition: transform 0.4s ease;
 }

 .product-photo:hover img {
     transform: scale(1.1);
 }

 .related-arrows button {
     width: 44px;
     height: 44px;
     border-radius: 50%;
     font-size: 18px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
 }

 .related-title {
     font-size: 22px;
     font-weight: 700;
     color: var(--primary-blue);
     /* namba primary color */
     display: inline-block;
     position: relative;
     padding-bottom: 8px;
 }

 .related-title::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 0;
     width: 60px;
     /* border length */
     height: 3px;
     background-color: var(--primary-blue);
     /* secondary color */
     border-radius: 2px;
 }

 @media(max-width:370px) {
     .related-title {
         font-size: 15px;
     }
 }

 .photo-actions {
     position: absolute;
     bottom: 15px;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     gap: 10px;
     opacity: 0;
     transition: all 0.3s ease;
 }

 .photo-actions button {
     width: 38px;
     height: 38px;
     border-radius: 2px;
     background: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #000;
     border: none;
     cursor: pointer;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
     font-size: 17px;
 }

 .photo-actions button:hover {
     background: #f98b13;
     color: #fff;
 }

 /* Hover Anim */
 .product-photo:hover .photo-actions {
     opacity: 1;
     bottom: 25px;
 }

 .photo-actions a {
     width: 38px;
     height: 38px;
     border-radius: 2px;
     background: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #000;
     text-decoration: none;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
     flex-shrink: 0;
     /* size shrink aagama fix */
     font-size: 16px;
     /* icon size balance */
     padding: 0;
     /* extra spacing remove */
     line-height: 1;
     /* vertical align correct */
 }


 .product-name {
     font-size: 12px;
     text-align: left;
     font-weight: 600;
     color: var(--primary-color);
 }

 .product-price {
     margin: 0;
 }

 .price-old {
     text-decoration: line-through;
     color: gray;
     margin-right: 5px;
 }

 .price-new {
     font-weight: 700;
     color: #4d301d;
 }

/* Container Box */
.spec-box {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Slightly smoother radius */
    overflow: hidden;
    margin-top: 20px;
    background-color: var(--white);
}

/* The Row (Acts as the Table Row) */
.spec-row {
    display: grid;
    /* Desktop: Title takes 30%, Value takes remaining space */
    grid-template-columns: 30% 1fr;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

/* Remove border from last item */
.spec-row:last-child {
    border-bottom: none;
}

/* Hover Effect */
.spec-row:hover {
    background-color: var(--light-gray); /* Ensure this var exists, or use #f9f9f9 */
}

/* Left Column (Title) */
.spec-title {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa; /* Optional: Slight grey background for "Header" column look */
    border-right: 1px solid var(--border-color); /* Separator line between columns */
}

.spec-title i {
    color: var(--primary-orange);
    font-size: 1.1rem;
    flex-shrink: 0; /* Prevents icon from squishing */
}

/* Right Column (Value) */
.spec-value {
    padding: 15px 20px;
    font-weight: 500;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    word-break: break-word; /* Prevents long text from overflowing */
}

/* --- RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 768px) {
    .spec-row {
        /* Switch to single column stack */
        grid-template-columns: 1fr;
    }

    .spec-title {
        border-right: none; /* Remove vertical separator */
        border-bottom: 1px dashed var(--border-color); /* Add slight separator between title and value */
        background-color: transparent; /* Clean look for mobile */
        padding-bottom: 5px; /* Reduce padding between title and value */
    }

    .spec-value {
        padding-top: 5px; /* Reduce padding */
        color: #555; /* Slightly softer color for reading on mobile */
    }
}

 /* .product-gallery {
    max-width: 550px;
} */

 .zoom-wrapper {
     overflow: hidden;
     position: relative;
 }

 .zoom-img {
     width: 100%;
     transition: transform 0.3s ease;
     cursor: zoom-in;
 }

 .zoom-img:hover {
     transform: scale(1.6);
 }

 .thumb-swiper .swiper-slide {
     opacity: 0.5;
     cursor: pointer;
 }

 .thumb-swiper .swiper-slide-thumb-active {
     opacity: 1;
     /* border: 2px solid #007bff; */
 }

 .main-swiper {
     position: relative;
 }

 /* Left / Right Arrows */
 .swiper-button-next,
 .swiper-button-prev {
     color: #000;
     background-color: var(--secondary-color);
     height: 40px !important;
     width: 40px !important;
     font-size: 15px !important;
     border-radius: 50%;
 }

@media (max-width: 992px) {
    .product-gallery{
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) {
    .swiper-thumbs{
        margin-top: 10px;
    }
}
/* Hereafter design */
