* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "MyStoreon Ember", Arial, sans-serif; /* MyStoreon uses custom font, Arial is fallback */
    font-size: 14px;
    color: #0F1111;
}

body {
    background-color: #fff;
    padding: 10px;
}

/* Overall page layout - Flex with three main parts: Image-Center, Swatches-Center, Buybox-Right */
.MyStoreon-page-wrapper {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    gap: 20px;
    align-items: flex-start;
}

/* Left & Center section combined */
.product-main-area {
    display: flex;
    flex: 3; /* Takes up most of the space */
    gap: 15px;
}

/* SECTION 1: Image Gallery (Left) */
.image-gallery {
    display: flex;
    flex: 1.2;
    gap: 10px;
    position: sticky; /* Keep image floating as you scroll */
    top: 10px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumbnails img {
    width: 45px;
    height: 55px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    object-fit: contain;
    background-color: white;
}

.thumbnails img.active, .thumbnails img:hover {
    border: 2px solid #e77600;
    box-shadow: 0 0 3px rgba(228, 121, 17, .5);
}

.main-image {
    flex: 1;    
    text-align: center;
    background-color: white;
}

.main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* SECTION 2: Product Title & Center Info */
.product-info-center {
    flex: 1.8;
}

.brand-link {
    color: #007185;
    text-decoration: none;
    font-size: 13px;
}

.product-title {
    font-size: 21px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.3;
}

.rating-info {
    color: #FFA41C; /* Star color */
    font-size: 16px;
    margin: 5px 0;
}

.rating-count {
    color: #007185;
    font-size: 14px;
    margin-left: 5px;
}

.best-seller-badge {
    background-color: #E47911;
    color: white;
    padding: 3px 6px;
    border-radius: 2px;
    display: inline-block;
    font-size: 12px;
    margin-top: 8px;
}

.best-seller-badge span {
    color: white;
    font-weight: bold;
}

.bought-count {
    font-size: 12px;
    color: #565959;
    margin-top: 5px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.price-display {
    font-size: 28px;
    margin-bottom: 5px;
}

.currency, .decimal {
    font-size: 13px;
    vertical-align: super;
}

.shipping-subtitle {
    font-size: 13px;
    color: #565959;
}
.shipping-subtitle a {
    color: #007185;
    text-decoration: none;
}

/* Color Swatches Grid (Refined) */
.color-selection p {
    margin-top: 15px;
    margin-bottom: 5px;
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns as in screenshot */
    gap: 8px;
    max-width: 350px; /* limits width to look natural */
}

.swatch {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    text-align: center;
    background-color: #f7f7f7;
}

.swatch img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

.swatch.active {
    border: 2px solid #e77600;
    box-shadow: 0 0 3px rgba(228, 121, 17, .5);
}

.swatch:hover {
    border: 1px solid #888;
}

/* RIGHT SIDE: Buy Box (Add to Cart area) */
.buy-box-area {
    flex: 1; /* Takes 1 part of space */
    max-width: 300px;
}

.buy-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.price-display-small {
    font-size: 24px;
    margin-bottom: 10px;
}

.shipping-details {
    font-size: 12px;
    color: #565959;
    margin-bottom: 5px;
}
.shipping-details a {
    color: #007185;
}

.delivery-estimate {
    margin-bottom: 5px;
}

.deliver-to {
    color: #007185;
    font-size: 12px;
    margin-bottom: 15px;
}

.stock-status {
    color: #b12704;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 15px;
}

.quantity-select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #D5D9D9;
    background-color: #F0F2F2;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Buy Box ke andar wale buttons ko target karne ke liye */
.buy-box .action-buttons {
    display: flex;
    flex-direction: column; /* MyStoreon style: ek ke upar ek */
    gap: 10px;
    margin-top: 15px;
}

/* Common Button Styles */
.buy-box .btn {
    padding: 10px;
    border-radius: 20px; /* Rounded corners */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    border: 1px solid;
    transition: 0.3s;
}

/* Add to Cart - Yellow Style (MyStoreon standard) */
.buy-box .btn-add {
    background-color: #ffd814 ; /* Force apply color */
    border-color: #fcd200;
    color: #0f1111;
}

.buy-box .btn-add:hover {
    background-color: #f7ca00 ;
}

/* Buy Now - Orange Style */
.buy-box .btn-buy {
    background-color: #ffa41c ; /* Force apply color */
    border-color: #ff8f00;
    color: #0f1111;
}

.buy-box .btn-buy:hover {
    background-color: #f08800 ;
}

.seller-info {
    margin-top: 15px;
    font-size: 12px;
}
.seller-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}
.seller-info span {
    color: #565959;
}
.seller-info a {
    color: #007185;
}

.returns-policy, .payment-policy {
    color: #007185;
    font-size: 12px;
    margin-top: 5px;
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* LAYOUT */
.MyStoreon-page-wrapper {
    display: flex;
    max-width: 1400px;
    margin: auto;
    gap: 20px;
}

/* LEFT SIDE */
.product-main-area {
    display: flex;
    flex: 3;
    gap: 15px;
}

/* IMAGE GALLERY */
.image-gallery {
    display: flex;
    gap: 10px;
}

/* THUMBNAILS */
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    cursor: pointer;
}

.thumbnails img.active {
    border: 2px solid orange;
}

/* MAIN IMAGE */
.main-image img {
    width: 400px;
    height: 450px;
    object-fit: contain;
    border: 1px solid #ddd;
}

/* PRODUCT INFO */
.product-info-center {
    flex: 1.5;
}

/* SWATCHES */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.swatch img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
}
/* Popover ko design karne ke liye */
.popover-box {
    position: absolute; /* Ye line box ko text ke upar le aayegi */
    top: 25px;
    left: 0;
    width: 240px;
    background: white;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 500; /* Taake box sab se upar dikhe */
    font-size: 14px;
}

/* Hidden class jo JS toggle karegi */
.hidden {
    display: none;
}

.popover-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #111;
}
.stars {
    color: #ffa41c; /* MyStoreon Gold/Yellow color */
    font-size: 14px;
    letter-spacing: 1px; /* Stars ke darmiyan thora gap */
}

.rating-count {
    color: #007185; /* Ratings ka count blue color mein hota hai */
    font-size: 14px;
    margin-left: 5px;
}

/* footer */
/* Main Footer Styling */
#footer {
    background-color: #232f3e; /* MyStoreon Dark Blue */
    padding: 40px 0 20px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

#footer h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 3px solid #febd69; /* Yellow indicator */
    padding-left: 10px;
}

#footer ul.quick-links li {
    margin-bottom: 10px;
}

#footer ul.quick-links li a {
    color: #dddddd;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect: Yellow color and slide */
#footer ul.quick-links li a:hover {
    color: #febd69;
    padding-left: 8px;
}

/* Social Icons */
.social .list-inline-item {
    margin: 0 15px;
}

.social a {
    color: #ffffff;
    font-size: 20px;
    transition: 0.3s;
}

.social a:hover {
    color: #febd69;
}

/* Divider & Bottom Text */
.footer-divider {
    border-top: 1px solid #3a4553;
    margin: 30px 0;
}

.copyright-text p {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.university-tag a {
    color: #febd69;
    text-decoration: none;
}

/* Responsive spacing */
@media (max-width: 768px) {
    #footer {
        text-align: center;
    }
    #footer h5 {
        border-left: none;
        border-bottom: 2px solid #febd69;
        display: inline-block;
        padding: 0 10px 5px;
    }
}/* Container ko slide ke bahar buttons dikhane ke liye relative rakhein */
#MyStoreonSlider {
    padding: 0 40px;
}

/* Custom 7 columns setup - Bootstrap default mein nahi hota */
.row-cols-7 {
    display: flex;
    flex-wrap: nowrap; /* Taki items ek hi line mein rahein */
    overflow: hidden;
}

.row-cols-7 > .col {
    flex: 0 0 14.285%; /* 100% / 7 = 14.285% */
    max-width: 14.285%;
    padding: 5px;
}

/* Image scaling fix */
.card img {
    height: 150px;
    object-fit: contain;
    width: 100%;
}

/* Product title truncation (2 lines max) */
.product-desc {
    font-size: 13px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #007185;
    margin-bottom: 5px;
}

/* Buttons ko black/visible banayein */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333; /* Dark background buttons */
    border-radius: 50%;
    padding: 15px;
}
 /* --- UPDATED CSS --- */

/* Main Container */
.video-wrapper { 
    display: flex; 
    height: 450px; /* Standard height for better visibility */
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    margin: 20px 0; 
    font-family: Arial, sans-serif;
}

/* Left Side: Video Player */
.video-main { 
    flex: 2; /* Balanced ratio */
    background: #000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}

.video-main video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Video box ke andar rahegi, kategi nahi */
}

/* Right Side: Sidebar */
.video-sidebar { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    border-left: 1px solid #ddd; 
    background: #fdfdfd; 
    overflow-y: auto; /* Agar videos zyada hon to scrollbar aaye */
}

.sidebar-header { 
    padding: 15px; 
    font-weight: bold; 
    font-size: 14px; 
    border-bottom: 1px solid #ddd; 
    position: sticky; 
    top: 0; 
    background: #f8f9fa; 
    z-index: 10; 
    color: #333;
}

/* Individual Video Cards */
.video-card { 
    display: flex; 
    padding: 12px; 
    gap: 12px; 
    cursor: pointer; 
    border-bottom: 1px solid #eee; 
    transition: 0.3s; 
    align-items: center;
}

.video-card:hover { 
    background: #f7f7f7; 
}

.video-card.active { 
    border-left: 4px solid #e77600; /* MyStoreon Orange Brand Color */
    background: #fff; 
}

/* Thumbnail Box */
.video-card .thumb-box { 
    width: 65px; 
    height: 85px; 
    border-radius: 4px; 
    background: #444; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 12px; 
    flex-shrink: 0; 
    font-weight: bold;
}

/* Text inside Cards */
.video-card h6 { 
    font-size: 13px; 
    margin: 0 0 4px 0; 
    color: #111; 
    font-weight: 600;
    /* line-height: 1.2; */
}

.video-card span { 
    font-size: 11px; 
    color: #565959; 
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    
    .MyStoreon-page-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    
    .product-main-area {
        flex-direction: column;
        flex: none;
        width: 100%;
    }
 /* Adjust the image gallery for mobile */
    .image-gallery {
        flex-direction: column-reverse; 
        position: static; 
        align-items: center;
    }

    .thumbnails {
        flex-direction: row; /* Horizontal scrolling thumbnails */
        overflow-x: auto;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .main-image img {
        max-height: 350px; /* Smaller image for mobile */
    }

    /* Buy Box takes full width */
    .buy-box-area {
        max-width: 100%;
        width: 100%;
    }

    /* Grid adjustment for swatches */
    .swatch-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns instead of 7 */
        max-width: 100%;
    }

    /* Video Player Responsive */
    .video-wrapper {
        flex-direction: column;
        height: auto;
    }

    .video-sidebar {
        height: 250px; /* Fixed height for sidebar scroll on mobile */
        border-left: none;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 18px;
    }
    
    .swatch-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for very small screens */
    }
}