

/* Product Image Hover */

.image-hover-effect {
    position: relative;
    overflow: hidden;
}
.product-hover-image {
    top: 0;
    left: 0;
    opacity: 0; 
    transition: opacity 0.6s ease-in-out;
}

.image-hover-effect:hover .product-hover-image {
    opacity: 1; 
}

.live-circle-icon {
    animation: blink-1p5 1.5s infinite;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes blink-1p5 {
    0%   { opacity: 1; }   
    50%  { opacity: 0.5; }   
    100% { opacity: 1; }  
}

  /* Respect reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    .blink { animation: none; }
  }

.product-details-page .add-to-cart {
  transition: transform 0.3s ease-in-out;
}

.product-details-page .add-to-cart:hover {
  transform: scale(1.02, 1.1);
}

/* Image Gallery Viewer */


.img-zoom {
   cursor:grab;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left:0; top:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
    overflow: auto;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    top: 50%;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-toolbar button {
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    border-radius: 5px;
}
.lightbox-close { font-size: 22px; background: rgba(0,0,0,0.7);}


.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: rgb(0 0 0 / 25%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1100;
    transition: background 0.3s ease;
}
.lightbox-arrow:hover {
    background: rgba(0,0,0,0.8);
}
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

.lightbox-toolbar {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* left + right */
    align-items: center;
    padding: 0 15px;
    z-index: 1100;
}

.toolbar-left {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.toolbar-right button {
    margin-left: 4px;
    font-size: 18px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.toolbar-right button:hover {
    background: rgba(0,0,0,0.8);
}


.lightbox-modal img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
   
    max-width: 90% !important;
    max-height: 80% !important;
    margin: 0 !important; 
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* Expand Icon */
.carousel-box {
    position: relative; 
    overflow: visible;  
}

.wd-show-product-gallery-wrap {
    position: absolute;
    bottom: 40px;
    left: 10px;
    z-index: 999; 
}

.wd-show-product-gallery-wrap a {
    display: flex;
    align-items: center;
    padding: 6px ;
    background: rgba(0,0,0,0);
    color: #666666;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    width: 35px;
    transition: width 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.wd-show-product-gallery-wrap a .text {
    margin-left: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wd-show-product-gallery-wrap a:hover {
    width: 145px; 
    color: #000;
}

.wd-show-product-gallery-wrap a:hover .text {
    opacity: 1;
}

/* Custom hober effect on btn */
.custom-hov-btn:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.custom-hov-btn:active {
    transform: translateY(1px);
}

.pb-26px{
    padding-bottom: 1.625rem;
}
.py-19px{
    padding-top: 1.1875rem;
    padding-bottom: 1.1875rem;
}
.py-32px{
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.pt-32px{
    padding-top: 2rem;
}
.pb-32px{
    padding-bottom: 2rem;
}
.mb-32px{
    margin-bottom: 2rem;
}

.my-32px{
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/* Extra small devices (xs) <576px */
@media (max-width: 575.98px) {
    .pb-26px { padding-bottom: 1rem !important; }
    .py-19px { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-32px { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .pt-32px { padding-top: 1rem !important; }
    .pb-32px { padding-bottom: 1rem !important; }
    .mb-32px { margin-bottom: 1rem !important; }
    .my-32px { margin-top: 1rem !important; margin-bottom: 1rem !important; }
}

/* Small devices (sm) ≥576px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .pb-26px { padding-bottom: 1.25rem !important; }
    .py-19px { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
    .py-32px { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .pt-32px { padding-top: 1.25rem !important; }
    .pb-32px { padding-bottom: 1.25rem !important; }
    .mb-32px { margin-bottom: 1.25rem !important; }
    .my-32px { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
}

/* Medium devices (md) ≥768px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pb-26px { padding-bottom: 1.5rem !important; }
    .py-19px { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-32px { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .pt-32px { padding-top: 1.5rem !important; }
    .pb-32px { padding-bottom: 1.5rem !important; }
    .mb-32px { margin-bottom: 1.5rem !important; }
    .my-32px { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
}

/* Large devices (lg) ≥992px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pb-26px { padding-bottom: 1.625rem !important; }
    .py-19px { padding-top: 1.1875rem !important; padding-bottom: 1.1875rem !important; }
    .py-32px { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
    .pt-32px { padding-top: 1.75rem !important; }
    .pb-32px { padding-bottom: 1.75rem !important; }
    .mb-32px { margin-bottom: 1.75rem !important; }
    .my-32px { margin-top: 1.75rem !important; margin-bottom: 1.75rem !important; }
}

/* Extra large devices (xl) ≥1200px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pb-26px { padding-bottom: 1.75rem !important; }
    .py-19px { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .py-32px { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; }
    .pt-32px { padding-top: 1.875rem !important; }
    .pb-32px { padding-bottom: 1.875rem !important; }
    .mb-32px { margin-bottom: 1.875rem !important; }
    .my-32px { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; }
}

/* Extra extra large devices (xxl) ≥1400px */
@media (min-width: 1400px) {
    .pb-26px { padding-bottom: 1.625rem !important; }
    .py-19px { padding-top: 1.1875rem !important; padding-bottom: 1.1875rem !important; }
    .py-32px { padding-top: 2rem !important; padding-bottom: 2rem !important; } /* max 2rem */
    .pt-32px { padding-top: 2rem !important; }
    .pb-32px { padding-bottom: 2rem !important; }
    .mb-32px { margin-bottom: 2rem !important; }
    .my-32px { margin-top: 2rem !important; margin-bottom: 2rem !important; }
}

/* ========================================
   MODERN PRODUCT CARD STYLES
   ======================================== */

.product-card-modern {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge positioning with modern spacing */
.product-card-modern .absolute-top-left {
    top: 12px;
    left: 12px;
}

.product-card-modern .absolute-top-right {
    top: 12px;
    right: 12px;
}

.product-card-modern .rounded {
    border-radius: 8px !important;
}

/* Modern Cart Button */
.cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    transform: translateY(10px);
}

.product-card-modern:hover .cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cart-btn.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Icon hover effects */
.aiz-p-hov-icon a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    margin: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.product-card-modern:hover .aiz-p-hov-icon a {
    opacity: 1;
    transform: scale(1);
}

.aiz-p-hov-icon a:hover {
    background: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.aiz-p-hov-icon a:hover svg path {
    fill: white;
}

/* Mobile icon container */
.aiz-p-hov-icon-mobile {
    background: white;
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aiz-p-hov-icon-mobile a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.aiz-p-hov-icon-mobile a:hover svg path {
    fill: #667eea;
}

/* Product info section */
.product-card-modern .p-2,
.product-card-modern .p-md-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-modern h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #2d3748;
}

.product-card-modern h3 a:hover {
    color: #667eea;
}

/* Price styling */
.product-card-modern .text-primary {
    color: #667eea !important;
    font-weight: 600;
}

.product-card-modern .disc-amount del {
    color: #a0aec0;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .product-card-modern {
        border-radius: 8px;
    }

    .product-image-container {
        aspect-ratio: 1;
    }

    .cart-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Modern grid layout for product listings */
.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
}

@media (min-width: 576px) {
    .product-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .product-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 28px;
    }
}

/* ========================================
   MODERN CATEGORY CARDS
   ======================================== */

.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.category-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.category-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.category-content {
    min-width: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2d3748;
}

.category-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-title a:hover {
    color: #667eea;
}

.category-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-child-link {
    color: #718096;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.category-child-link:hover {
    color: #667eea;
    padding-left: 4px;
}

@media (max-width: 767.98px) {
    .featured-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 16px;
    }

    .category-image {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .category-image img {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   MODERN SECTION HEADERS
   ======================================== */

section h2 {
    position: relative;
    padding-bottom: 12px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Listing discount badge: match Archive Lane palette (instead of red). */
.pl-card-discount-badge{
    background: var(--al-accent, #B89A5E) !important;
    color: #fff !important;
}

/* Admin Header - Dark Green Theme */
.aiz-topbar {
    background: linear-gradient(135deg, #1A2F23, #2B4C3F) !important;
    border-bottom: 2px solid #B89A5E !important;
}
.aiz-topbar .aiz-topbar-menu {
    color: rgba(255,255,255,0.85) !important;
}
.aiz-topbar .aiz-topbar-menu:hover,
.aiz-topbar .aiz-topbar-menu.active {
    color: #fff !important;
    border-bottom-color: #B89A5E !important;
}
.aiz-topbar .btn-topbar,
.aiz-topbar .btn-light {
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
}
.aiz-topbar .btn-topbar:hover {
    background: rgba(255,255,255,0.2) !important;
}
.aiz-topbar svg path,
.aiz-topbar svg rect {
    fill: rgba(255,255,255,0.8) !important;
}
.aiz-topbar .fw-500,
.aiz-topbar .opacity-60,
.aiz-topbar .text-dark {
    color: rgba(255,255,255,0.9) !important;
}
.aiz-topbar .btn-soft-blue {
    background: #B89A5E !important;
    color: white !important;
    border: none !important;
}
.aiz-topbar .btn-soft-blue:hover {
    background: #a08545 !important;
}
