/* Style Guide Right Section - Products Grid */
.style-guide-right-section {
    flex: 1;
}

.style-guide-products-grid .products{
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 240px)) !important;
    gap: 15px !important;
    justify-content: center !important;
}

.style-guide-widget .product-card {
    position: relative;
}

.style-guide-widget .product-card .product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.style-guide-widget .product-card .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.style-guide-widget .product-card .product-card-top {
    position: relative;
    margin-bottom: 12px;
}

.style-guide-widget .product-card .product-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-guide-widget .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-guide-widget .product-card .product-card:hover .product-image img {
    transform: scale(1.05);
}

 .product-card .product-add-to-cart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 2;
}
.style-guide-widget .product-card .product-variation-overlay{
    padding:12px 6px;
}
.style-guide-widget .product-variation-overlay .overlay-add-to-cart .add_to_cart_button{
    border-radius:8px;
}
.style-guide-product-card:hover .product-add-to-cart {
    opacity: 1;
    transform: scale(1);
}

.style-guide-widget .product-card .product-add-to-cart:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

.style-guide-widget .product-card .product-add-to-cart i {
    font-size: 12px;
}

.style-guide-widget .product-card .product-card-middle {
    margin-bottom: 8px;
}

.style-guide-widget .product-card .product-name {
    font-size: 13px;
    text-align:right !important;
    line-height: 1.3;
    margin: 0;
    color: var(--text-color);
    min-height:45px;
}

.style-guide-widget .product-card .product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
         overflow: visible; 
     white-space: normal !important;
     font-size:14px !important;
         font-weight: 500;
         text-align:right;
}

.style-guide-widget .product-card .product-card-middle .product-cat{
    display:none;
}
.style-guide-widget .product-card .product-card-bottom {
    margin-top: auto;
   justify-content:end !important
}

.style-guide-widget .product-card .product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}
.style-guide-widget .product-card .product-price .price{
    display:flex;
    flex-direction:row;
    gap:5px
}
.style-guide-widget .product-card  .product-price del .woocommerce-Price-currencySymbol{
    display:none;
}
/* Responsive Design */
@media (max-width: 768px) {
    .style-guide-products-grid .products{
        grid-template-columns: 1fr  !important;
        grid-template-rows: repeat(4, 1fr)  !important;
        gap: 10px;
    }
    
    .style-guide-widget .product-card .product-image {
        height: 100px;
    }
    
    .style-guide-widget .product-card .product-card {
        padding: 10px;
    }
}

.style-guide-widget {
    width: 100%;
}

/* Layout Styles */
.style-guide-layout-horizontal .style-guide-horizontal-layout {
    display: flex;
    gap: 10px;
    align-items: stretch;
    min-height: 500px;
}

/* Three Column Layout for Horizontal */
.style-guide-layout-horizontal .style-guide-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px 0 20px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 4px 16px 0 rgba(36, 43, 61, 0.10);
    order:3;
    
}

.style-guide-layout-horizontal .style-guide-center-section {
    flex: 1.5;
    order:2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-guide-layout-horizontal .style-guide-right-section {
    flex: 1;
    order:1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quick Shop Container Styles */
.style-guide-quick-shop-container {
    width: 100%;
}

.quick-shop-header {
    margin-bottom: 20px;
}

.quick-shop-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.quick-shop-divider {
   border:1px solid rgba(var(--border-color),0.1);
    margin-bottom: 20px;
}

/* Quick Shop Products */
.quick-shop-products {
    margin-bottom: 20px;
}

.quick-shop-product-item {
    background: #fff;
    padding: 15px 5px;
    margin-bottom: 15px;
    border-bottom:1px solid rgba(36, 43, 61, 0.1);
}

.quick-shop-product-item:last-child {
 border-bottom:none;   
}
.product-main-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap:5px
}

.product-main-info .product-name {
    color: #3F3F3F;
    flex: 0 50%;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-right:5px;
}

.product-main-info .product-price {
    font-size: 18px;
    font-weight: 700;
 color: #3F3F3F;
 display:flex;
    flex-wrap: nowrap;
    gap: 10px;
        align-items: center;
        margin-right:auto;
}
.product-main-info .product-price del{
        font-size: 13px;
    color: #3F3F3F80;
    display:none;
}
.product-main-info .product-price del svg{
    display:none;
}
/* Product Variations */
.style-guide-widget .product-variations {
    display:flex;
        flex-direction: column;
        gap: 10px;
}
.style-guide-widget .variation-row{
    display:flex;
        margin-bottom: 0;
        border-radius:16px;
}
.style-guide-widget .variation-row:last-child {
    margin-bottom: 0;
}

.style-guide-widget .variation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width:100%;
}

.variation-label {
    font-size: 14px;
    color: rgba(63, 63, 63, 0.5);
    font-weight: 500;
    min-width: 40px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    border: 1px  solid rgba(63, 63, 63, 0.2) !important;
    background-color: #fff !important;
    padding: 5px;
    box-sizing: border-box;
}

.color-option:hover {
    border-color: rgba(63, 63, 63, 0.5) !important;
}

.color-option.selected {
    border: 2px solid #C83B3B !important;
}

/* Inner color square */
.color-option::before {
    border:1px solid rgba(63, 63, 63, 0.1);
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 3px;
    z-index: 1;
}

/* Set the inner square color using JavaScript or attribute */
.color-option[data-color]::before {
    background-color: var(--color-value, #cccccc);
}

/* Checkmark for selected state */
.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    z-index: 3;
    content: "\f00c";
    font-family: 'Font Awesome 6 Pro';
    font-size: 10px;
}

.color-option .color-text {
    display: none;
}

.color-option .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Dark colors checkmark remains white */
.color-option[style*="background-color: #000"].selected::after,
.color-option[style*="background-color: black"].selected::after,
.color-option[style*="background-color: #333"].selected::after {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Light colors also get white checkmark for consistency */
.color-option[style*="background-color: #fff"].selected::after,
.color-option[style*="background-color: white"].selected::after {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


/* Size Options */
.size-options , .variation-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    /*margin-top: 8px;*/
}

.size-option , .variation-option  {
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(200, 59, 59, 0.1) !important;
    padding: 5px;
    box-sizing: border-box;
    color:rgba(200, 59, 59, 1);
}

.size-option.selected , .variation-option.selected{
    background-color: rgba(200, 59, 59, 1) !important;
    color: #fff !important;
}

.size-option .size-text ,  .variation-option .size-text{
    color: rgba(200, 59, 59, 1);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

.size-option.selected .size-text , .variation-option.selected .size-text{
    color: #fff;
}

.size-option .sr-only , .variation-option.selected .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Pulse animation for selections */
.color-option.pulse,
.size-option.pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Quick Shop Footer */
.quick-shop-footer {
    border-top: 2px solid rgba(36, 43, 61, 0.1);
    padding-top: 10px;
    text-align:center;
}

.quick-shop-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: rgba(200, 59, 59, 1);
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: rgba(63, 63, 63, 1);
}

.quick-shop-add-all-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 16px 16px 0 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.quick-shop-add-all-btn:before{
    /*position:absolute;*/
    content:'\f07a';
    font-family:'Font Awesome 6 Pro';
    font-weight:300;
    font-size:14px;
    margin-left:5px;
}
/* Center Section - Main Image */
.style-guide-center-section .style-guide-main-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.style-guide-center-section .style-guide-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Right Section - Products Vertical */
.style-guide-products-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.style-guide-products-vertical::-webkit-scrollbar {
    width: 6px;
}

.style-guide-products-vertical::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.style-guide-products-vertical::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.style-guide-products-vertical::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.style-guide-products-vertical .style-guide-product-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eee;
    position: relative;
}

.style-guide-products-vertical .product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
}

.style-guide-products-vertical .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.style-guide-products-vertical .product-info {
    flex: 1;
    min-width: 0;
}

.style-guide-products-vertical .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-guide-products-vertical .product-price {
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
}

.style-guide-products-vertical .product-add-to-cart {
    width: 35px;
    height: 35px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

/* Quick Shop Button in Left Section */
.style-guide-left-section .style-guide-quick-shop {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.style-guide-layout-vertical .style-guide-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.style-guide-layout-grid {
    display: grid;
    gap: 30px;
}

.style-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Container Styles */
.style-guide-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: visible;
}

/* Legacy styles for non-horizontal layouts */
.style-guide-layout-vertical .style-guide-main-image,
.style-guide-layout-grid .style-guide-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.style-guide-layout-vertical .style-guide-main-image img,
.style-guide-layout-grid .style-guide-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Styles for Vertical/Grid Layouts */
.style-guide-layout-vertical .style-guide-content,
.style-guide-layout-grid .style-guide-content {
    padding: 25px;
}

.style-guide-layout-vertical .style-guide-title,
.style-guide-layout-grid .style-guide-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.style-guide-layout-vertical .style-guide-description,
.style-guide-layout-grid .style-guide-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Products Grid for Vertical/Grid Layouts */
.style-guide-layout-vertical .style-guide-products,
.style-guide-layout-grid .style-guide-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.style-guide-layout-vertical .style-guide-product-item,
.style-guide-layout-grid .style-guide-product-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.style-guide-layout-vertical .style-guide-product-item .product-image,
.style-guide-layout-grid .style-guide-product-item .product-image {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.style-guide-layout-vertical .style-guide-product-item .product-image img,
.style-guide-layout-grid .style-guide-product-item .product-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.style-guide-layout-vertical .style-guide-product-item .product-name,
.style-guide-layout-grid .style-guide-product-item .product-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-guide-layout-vertical .style-guide-product-item .product-price,
.style-guide-layout-grid .style-guide-product-item .product-price {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 10px;
}

.style-guide-layout-vertical .style-guide-product-item .product-add-to-cart,
.style-guide-layout-grid .style-guide-product-item .product-add-to-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

/* Quick Shop Button for Vertical/Grid Layouts */
.style-guide-layout-vertical .style-guide-quick-shop,
.style-guide-layout-grid .style-guide-quick-shop {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Loading States */
.style-guide-quick-shop.loading {
    opacity: 0.7;
    pointer-events: none;
}

.style-guide-quick-shop.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .style-guide-layout-horizontal .style-guide-horizontal-layout {
        gap: 10px;
    }
    
    .style-guide-center-section .style-guide-main-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .style-guide-layout-horizontal .style-guide-horizontal-layout {
        flex-direction: column;
        gap: 25px;
        min-height: auto;
    }
    
    .style-guide-layout-horizontal .style-guide-left-section,
    .style-guide-layout-horizontal .style-guide-center-section,
    .style-guide-layout-horizontal .style-guide-right-section {
        width: 100%;
        flex: none;
    }
    
    .style-guide-layout-horizontal .style-guide-left-section {
        order: 1;
        padding: 20px;
    }
    
    .quick-shop-title {
        font-size: 18px;
    }
    
    .quick-shop-product-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .product-main-info .product-name {
        font-size: 13px;
    }
    
    .product-main-info .product-price {
        font-size: 13px;
    }
    
    .variation-label {
        font-size: 11px;
        min-width: 35px;
    }
    
    .variation-select {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .color-option {
        width: 32px;
        height: 32px;
    }
    
    .quick-shop-add-all-btn {
        padding: 12px 15px;
        font-size: 14px;
          border-radius: 8px;
        background: #C83B3B;
        width:100%;
        
    }
    .quick-shop-total{
        border:none;
    }
    .style-guide-layout-horizontal .style-guide-center-section {
        order: 2;
    }
    
    .style-guide-layout-horizontal .style-guide-right-section {
        order: 1;
    }
    
    .style-guide-products-vertical {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        gap: 10px;
    }
    
    .style-guide-products-vertical .style-guide-product-item {
        flex-direction: column;
        min-width: 150px;
        text-align: center;
    }
    
    .style-guide-products-vertical .product-image {
        margin-left: 0;
        margin-bottom: 10px;
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .style-guide-products-vertical .product-add-to-cart {
        margin-top: 10px;
    }
    
    .style-guide-center-section .style-guide-main-image img {
        height: 350px;
    }
    
    .style-guide-left-section .style-guide-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .style-guide-grid {
        grid-template-columns: 1fr;
    }
    
    .style-guide-layout-vertical .style-guide-products,
    .style-guide-layout-grid .style-guide-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .style-guide-container {
        margin-bottom: 20px;
    }
    
    .style-guide-layout-horizontal .style-guide-left-section {
        padding: 20px;
    }
    
    .style-guide-left-section .style-guide-title {
        font-size: 20px;
    }
    
    .style-guide-center-section .style-guide-main-image img {
        height: 300px;
    }
    
    .style-guide-products-vertical .style-guide-product-item {
        min-width: 130px;
    }
}

/* Success Animation */
.style-guide-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    transform: translateX(100%);
}

.style-guide-success-message.show {
    transform: translateX(0);
}

/* Badge Styles */
.style-guide-container .style-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.style-guide-container .style-badge.featured {
    background: #f39c12;
}

.style-guide-container .style-badge.new {
    background: #27ae60;
}

/* Hover Effects */
.style-guide-product-item {
    position: relative;
}

.style-guide-product-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    opacity: 0;
    border-radius: 8px;
}
  .style-guide-widget .quick-shop-header-image {
      display:none;
  }
/* Price Styling */
.style-guide-product-item .product-price .amount {
    font-weight: 700;
}

.style-guide-product-item .product-price del {
    color: #999;
    font-size: 12px;
    margin-right: 5px;
}

.style-guide-product-item .product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Button Variations */
.style-guide-quick-shop.style-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.style-guide-quick-shop.style-minimal {
    background: #f8f9fa;
    color: #333;
}

/* Loading States */
.quick-shop-product-item.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-shop-product-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    z-index: 10;
}

.quick-shop-product-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Price Loading Animation */
.product-price.loading {
    position: relative;
    color: transparent !important;
}

.product-price.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Product Card Animation */
.quick-shop-product-item {
    transition: all 0.3s ease;
    transform: scale(1);
}

.quick-shop-product-item.updating {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.quick-shop-product-item .product-main-info {
    transition: all 0.3s ease;
}

.quick-shop-product-item.updating .product-main-info {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    padding: 12px;
    border-radius: 8px;
    margin: -4px;
}

/* Total Price Loading */
.quick-shop-total.loading .total-price {
    position: relative;
    color: transparent;
}

.quick-shop-total.loading .total-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Selection Animation */
.color-option, .variation-select {
    transition: all 0.2s ease;
}

.color-option:hover, .variation-select:focus {
    transform: scale(1.05);
}

.color-option.pulse {
    animation: quickPulse 0.3s ease;
}

/* Success Animation for buttons */
.add-to-cart-btn.success {
    animation: successPulse 0.5s ease;
}

.color-option.selected {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Success Animation */
.quick-shop-product-item.success {
    animation: successPulse 0.8s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes quickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===================================
   HOTSPOTS STYLES
   =================================== */

/* Hotspots Container */
.style-guide-hotspots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Hotspot Points */
.style-guide-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 0px 10px rgba(200, 59, 59, 0.4) !important;
    transition: all 0.3s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hotspot Number */
.style-guide-hotspot .hotspot-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Show number on hover */
.style-guide-hotspot:hover .hotspot-number {
    opacity: 1;
}

/* Hover State */
.style-guide-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tooltip */
.style-guide-hotspot-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    min-width: 120px;
    text-align: center;
}

/* Tooltip Arrow */
.style-guide-hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Show tooltip on hover */
.style-guide-hotspot:hover .style-guide-hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Product Price in Tooltip */
.hotspot-product-price {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;

}
.hotspot-product-price .price{
    color:#FFF !important;
}
/* Hotspot Animations */
.hotspot-animation-pulse {
    animation: hotspotPulse 2s infinite;
}

.hotspot-animation-bounce {
    animation: hotspotBounce 2s infinite;
}

.hotspot-animation-fade {
    animation: hotspotFade 3s infinite;
}

@keyframes hotspotPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:   0px 0px 0px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
      box-shadow:   0px 0px 0px 10px rgba(0, 0, 0, 0.5)
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
       box-shadow:   0px 0px 0px 8px rgba(0, 0, 0, 0.4);
    }
}

@keyframes hotspotBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    40% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
    60% {
        transform: translate(-50%, -50%) translateY(-4px);
    }
}

@keyframes hotspotFade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .style-guide-hotspot {
        width: 16px;
        height: 16px;
    }
    
    .style-guide-hotspot .hotspot-number {
        font-size: 10px;
        padding: 1px 4px;
        top: -25px;
    }
    
    .style-guide-hotspot-tooltip {
        font-size: 12px;
        padding: 6px 8px;
        min-width: 100px;
        bottom: 25px;
    }
    
    /* On mobile, always show numbers */
    .style-guide-hotspot .hotspot-number {
        opacity: 1;
    }
    
    /* Tooltip shows on click/tap */
    .style-guide-hotspot:active .style-guide-hotspot-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Main Image Container with Hotspots */
.style-guide-main-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.style-guide-main-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ensure hotspots container matches image dimensions */
.style-guide-hotspots-overlay {
    pointer-events: none;
}

.style-guide-hotspots-overlay .style-guide-hotspot {
    pointer-events: all;
}

/* ===== DESKTOP AND GENERAL STYLES ===== */

/* Desktop Layout (above 768px) */
@media (min-width: 769px) {
    /* Keep original desktop layout */
    .style-guide-widget .style-guide-horizontal-layout {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .style-guide-widget .style-guide-left-section {
        flex: 1;
        order: 3;
    }
    
    .style-guide-widget .style-guide-center-section {
        flex: 2;
        order: 2;
    }
    
    .style-guide-widget .style-guide-right-section {
        flex: 1;
        order: 1;
        display: block !important; 
    }
    
    /* Desktop Quick Shop Layout */
    .style-guide-widget .quick-shop-items {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .style-guide-widget .quick-shop-product-item {
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }
    /* Hide accordion structure on desktop */
    .style-guide-widget .quick-shop-product-header,
    .style-guide-widget .quick-shop-product-content {
        display: none !important;
    }
    
    /* Show normal structure on desktop */
    .style-guide-widget .product-image,
    .style-guide-widget .product-info,
    .style-guide-widget .add-to-cart-section {
        display: block !important;
    }
    
    .quick-shop-product-item .product-image {
        display: none !important;
    }
    
    /* Desktop Checkbox Style */
    .style-guide-widget .quick-shop-toggle-icon {
        width: 20px;
        height: 20px;
        border: 2px solid #ddd;
        border-radius: 3px;
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        transform: none;
        display: block !important;
        position:relative;
    }
    
    .style-guide-widget .quick-shop-product-item.selected-for-cart .quick-shop-toggle-icon {
        background: #09AE87;
        border-color: #09AE87;
    }
    
    .style-guide-widget .quick-shop-product-item.selected-for-cart .quick-shop-toggle-icon::after {
        content: '\f00c';
        font-family:"Font Awesome 6 Pro";
        font-weight:300;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 12px;
        font-weight: bold;
    }
    
    .style-guide-widget .quick-shop-product-item:hover .quick-shop-toggle-icon {
        border-color: #09AE87;
    }
}

/* ===== MOBILE RESPONSIVE REDESIGN ===== */

/* Mobile First: 768px and below */
@media (max-width: 768px) {
    /* Hide products section completely on mobile */
    .style-guide-widget .style-guide-right-section,
    .style-guide-widget .style-guide-products,
    .style-guide-widget .style-guide-product-item {
        display: none !important;
    }
    
    /* Mobile Layout: Vertical Stack */
    .style-guide-widget .style-guide-horizontal-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    /* Image section - full width and centered */
    .style-guide-widget .style-guide-center-section {
        flex: none;
        width: 100%;
        order: 1;
        text-align: center;
    }
    
    .style-guide-widget .style-guide-main-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    
    /* Quick Shop section - centered and below image */
    .style-guide-widget .style-guide-left-section {
        flex: none;
        width: 100%;
        order: 2;
        display: flex;
        justify-content: center;
        margin-top: 20px;
        box-shadow:none;
        padding:10px;
    }
    
    /* Quick Shop Items - Accordion Style */
    .style-guide-widget .quick-shop-items {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .style-guide-widget .quick-shop-product-item {
        overflow: hidden;
        transition: all 0.3s ease;
        border-radius: 16px;
border: 1px solid rgba(36, 43, 61, 0.20);
background: #FFF;
box-shadow: 0 4px 16px 0 rgba(36, 43, 61, 0.10);
    }
    .style-guide-widget .quick-shop-product-item.active {
        background: #fff;
        border-color: #09AE87;
    }
    
    .style-guide-widget .quick-shop-product-item.selected-for-cart {
        border-color: #09AE87;
        box-shadow: 0 6px 20px rgba(9, 174, 135, 0.15);
    }
    
    .style-guide-widget .quick-shop-product-item.simple-product.selected-for-cart .quick-shop-toggle-icon {
        background: #09AE87;
    }
    .style-guide-widget .quick-shop-product-item.simple-product.selected-for-cart .quick-shop-toggle-icon:after {
    content: "\f00c"; 
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
}
    
    .style-guide-widget .quick-shop-simple-product {
        padding: 15px;
    }
    
    .style-guide-widget .simple-product-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .style-guide-widget .simple-product-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .style-guide-widget .simple-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .style-guide-widget .simple-product-details {
        flex: 1;
        min-width: 0;
    }
    
    .style-guide-widget .simple-product-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-color);
        margin: 0 0 4px 0;
        line-height: 1.3;
    }
    
    .style-guide-widget .simple-product-price {
        font-size: 16px;
        color: #e74c3c;
        font-weight: 500;
    }
    
    .style-guide-widget .simple-product-cart {
        flex-shrink: 0;
    }
    
    .style-guide-widget .simple-add-to-cart-btn {
        background: #09AE87;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .style-guide-widget .simple-add-to-cart-btn:hover {
        background: #078968;
        transform: translateY(-1px);
    }
    
    .style-guide-widget .simple-add-to-cart-btn i {
        font-size: 14px;
    }
    /* Accordion Header - Always Visible */
    .style-guide-widget .quick-shop-product-header {
        display: flex;
        align-items: center;
        padding: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fff;
        position:relative;
    }
    
    /* Product Image in Header */
    .style-guide-widget .quick-shop-header-image {
        display:block;
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        margin-left: 15px;
        flex-shrink: 0;
    }
    
    .style-guide-widget .quick-shop-header-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Product Info in Header */
    .style-guide-widget .quick-shop-header-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .style-guide-widget .quick-shop-header-name {
        margin: 0;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 24px; /* 200% */
    }
    
    .style-guide-widget .quick-shop-header-price {
        font-size: 12px;
        color: #242B3D;
        font-weight: 700;
    }
        .style-guide-widget .quick-shop-header-price del {
color: rgba(36, 43, 61, 0.50);
font-size: 10px;
font-weight: 500;
    }

    /* Accordion Toggle Icon */
    .style-guide-widget .quick-shop-toggle-icon {
        position:absolute;
        left:5px;
        width: 20px;
        height: 20px;
           border-radius: 4px;
          border: 1px solid rgba(36, 43, 61, 0.20);
        background: #FFF;
        transition: all 0.3s ease;
        bottom:20px;
    }
    
    .style-guide-widget .quick-shop-product-item.active .quick-shop-toggle-icon {
        background: #09AE87;
    }
    
    /* Accordion Content - Hidden by Default */
    .style-guide-widget .quick-shop-product-content {
        display: none;
        padding: 20px;
        animation: fadeInDown 0.3s ease;
        transition: all 0.3s ease;
                border-radius: 16px;
        background: #FFF;
        box-shadow: 0 0 16px 0 rgba(36, 43, 61, 0.10) inset;
    }
    
    .style-guide-widget .quick-shop-product-content.active {
        display: block;
    }
    
    /* Product Content Layout - Centered */
    .style-guide-widget .quick-shop-product-content .product-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Variations and Add to Cart in Content */
    .style-guide-widget .quick-shop-product-content .product-variations {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .style-guide-widget .quick-shop-product-content .variation-item {
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .style-guide-widget .quick-shop-product-content .variation-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-color);
    }
    .variation-info {
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}
    
    /* Color Variation - 32px squares */
    .style-guide-widget .quick-shop-product-content .color-variation .variation-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .style-guide-widget .quick-shop-product-content .color-variation .color-option {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        border: 2px solid #dee2e6;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .style-guide-widget .quick-shop-product-content .color-variation .color-option:hover,
    .style-guide-widget .quick-shop-product-content .color-variation .color-option.selected {
        border-color: #007bff;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }
    
    .style-guide-widget .quick-shop-product-content .color-variation .color-option.selected::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-weight: bold;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        font-size: 12px;
    }
    
    /* Size Variation - Dropdown */
    .style-guide-widget .quick-shop-product-content .size-variation .variation-select {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        padding: 12px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        font-size: 14px;
        background: #fff;
        color: #495057;
        text-align: center;
    }
    
    .style-guide-widget .quick-shop-product-content .add-to-cart-section {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin-top: 15px;
        width: 100%;
    }
    
    .style-guide-widget .quick-shop-product-content .quantity-input {
        width: 60px;
        padding: 10px 8px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        text-align: center;
        font-size: 14px;
    }
    
    .style-guide-widget .quick-shop-product-content .add-to-cart-btn {
        padding: 12px 24px;
        background: #28a745;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 120px;
    }
    
    .style-guide-widget .quick-shop-product-content .add-to-cart-btn:hover {
        background: #218838;
        transform: translateY(-1px);
    }
    
    /* Quick Shop Title */
    .style-guide-widget .quick-shop-title {
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 20px;
    }
    
    /* Add All to Cart Button */
    .style-guide-widget .quick-shop-add-all {
        width: 100%;
        padding: 15px;
        background: #007bff;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .style-guide-widget .quick-shop-add-all:hover {
        background: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }
}

/* Extra Small Mobile: 480px and below */
@media (max-width: 480px) {
    .style-guide-widget .style-guide-horizontal-layout {
        gap: 20px;
    }

    .style-guide-widget .quick-shop-product-header {
        padding: 0;
    }

    .style-guide-widget .quick-shop-header-name {
        font-size: 14px;
    }
    
    .style-guide-widget .quick-shop-header-price {
        font-size: 13px;
    }
    
    .style-guide-widget .quick-shop-product-content {
        padding: 15px;
        margin-top:20px;
    }
    
    .style-guide-widget .quick-shop-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .style-guide-widget .quick-shop-add-all {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animation for Accordion */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== END MOBILE RESPONSIVE ===== */

/* Responsive Design - Three Main Breakpoints */
/* Tablet */
@media (max-width: 1024px) {
    .style-guide-layout-horizontal .style-guide-horizontal-layout {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .style-guide-layout-horizontal .style-guide-horizontal-layout {
        gap: 15px;
    }
    
    .style-guide-left-section,
    .style-guide-right-section {
        padding: 15px;
    }
    
    .style-guide-products-grid .products {
        grid-template-columns: 1fr  !important;
        gap: 8px;
        padding: 15px;
    }
    
    .style-guide-widget .product-card .product-image {
        height: 80px;
    }
    
    .style-guide-widget .product-card .product-name {
        font-size: 14px;
    }
    
    .style-guide-widget .product-card .product-price {
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .style-guide-hotspot {
        width: 25px !important;
        height: 25px !important;
    }
    
    .style-guide-tooltip {
        width: 280px;
        font-size: 12px;
    }
    
    .quick-shop-title {
        font-size: 16px;
    }
    
    .quick-shop-product-item {
        padding: 16px;
    }
    
    .style-guide-layout-horizontal .style-guide-horizontal-layout {
        gap: 10px;
    }
    
    .style-guide-left-section,
    .style-guide-right-section {
        padding: 10px;
    }
    
    .style-guide-widget .product-card .product-name {
        font-size: 12px;
    }
    
    .style-guide-widget .product-card .product-price {
        font-size: 13px;
    }
}
