.tp4r-shop{margin:0 auto !important; max-width:1200px}
.tp4r-shop.tp4r-rtl{direction:rtl}
.tp4r-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 20px;padding:12px 16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px}
.tp4r-toolbar__label{font-weight:600;color:#374151;font-size:14px}
.tp4r-toolbar__select{min-width:200px;padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font-size:14px;color:#374151;cursor:pointer}
.tp4r-toolbar__select:focus{outline:none;border-color:#d9a23b;box-shadow:0 0 0 2px rgba(217,162,59,0.15)}

.tp4r-products{display:grid;gap:26px;grid-template-columns:repeat(var(--tp4r-cols-desktop,3),minmax(0,1fr))}
@media (max-width:1024px){.tp4r-products{grid-template-columns:repeat(var(--tp4r-cols-tablet,2),minmax(0,1fr))}}
@media (max-width:640px){.tp4r-products{grid-template-columns:repeat(var(--tp4r-cols-mobile,1),minmax(0,1fr))}}

.tp4r-product{text-align:center; position: relative;}
.tp4r-product__media{position:relative;border-radius:14px;overflow:hidden;background:#fff}
.tp4r-product__media p{margin:0; padding:0}
.tp4r-product__image{display:block;position:relative;aspect-ratio:1/1}
.tp4r-product__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover !important;transition:opacity .35s ease}
.tp4r-product__img--hover{opacity:0}
.tp4r-product--has-hover:hover .tp4r-product__img--hover{opacity:1}
.tp4r-product--has-hover:hover .tp4r-product__img--main{opacity:0}

/* Sale Badge with Bubbles Animation */
.tp4r-badge{position:absolute;top:12px;inset-inline-end:12px;background:linear-gradient(135deg,#d6c08b 0%,#c9a968 100%);color:#fff;font-weight:700;font-size:12px;padding:5px 9px;border-radius:6px;z-index:3;display:flex;align-items:center;gap:6px;white-space:nowrap;pointer-events:none;overflow:hidden;box-shadow:0 4px 12px rgba(214,192,139,0.4)}
.tp4r-badge__text{opacity:.95;font-weight:700;position:relative;z-index:2}
.tp4r-badge__pct{position:relative;z-index:2}

/* Bubbles Animation */
.tp4r-badge::before,.tp4r-badge::after{content:'';position:absolute;border-radius:50%;background:rgba(255,255,255,0.3);animation:tp4r-bubble-rise 3s ease-in-out infinite;z-index:1}
.tp4r-badge::before{width:8px;height:8px;left:15%;bottom:-10px;animation-delay:0s}
.tp4r-badge::after{width:6px;height:6px;left:65%;bottom:-8px;animation-delay:1.5s}

/* Additional bubbles via box-shadow trick on text element */
.tp4r-badge__pct::before,.tp4r-badge__pct::after{content:'';position:absolute;border-radius:50%;background:rgba(255,255,255,0.25);animation:tp4r-bubble-rise 3.5s ease-in-out infinite}
.tp4r-badge__pct::before{width:5px;height:5px;left:-20px;bottom:-15px;animation-delay:0.7s}
.tp4r-badge__pct::after{width:4px;height:4px;right:-10px;bottom:-12px;animation-delay:2.2s}

@keyframes tp4r-bubble-rise{
0%{transform:translateY(0) scale(1);opacity:0}
10%{opacity:0.6}
50%{opacity:0.4}
100%{transform:translateY(-35px) scale(0.5);opacity:0}
}



.tp4r-product__icons{position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:12px;display:flex;flex-direction:column;gap:4px;z-index:2}
.tp4r-icon{width:38px;height:38px;display:grid;place-items:center;background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);opacity:0;transform:translateX(-10px);transition:all .25s ease;text-decoration:none;color:#111}
.tp4r-rtl .tp4r-icon{transform:translateX(10px)}
.tp4r-icon .dashicons{font-size:18px;width:18px;height:18px}
.tp4r-product:hover .tp4r-icon{opacity:1;transform:translateX(0)}
.tp4r-product:hover .tp4r-icon:nth-child(1){transition-delay:.03s}
.tp4r-product:hover .tp4r-icon:nth-child(2){transition-delay:.08s}
.tp4r-product:hover .tp4r-icon:nth-child(3){transition-delay:.13s}
.tp4r-icon:hover{background:#f3f4f6}
.tp-home-content{box-sizing: border-box;}
.tp4r-product__meta{padding:12px 6px 0}
.tp4r-product__cat{color:#6b7280;font-size:12px;margin-bottom:6px}
.tp4r-product__cat a{color:inherit;text-decoration:none}
.tp4r-product__cat a:hover{text-decoration:underline}
.tp4r-product__title{margin:0 0 8px;font-size:16px;line-height:1.25;font-weight:700}
.tp4r-product__title a{text-decoration:none;color:inherit}
.tp4r-product__rating{margin:0 0 8px;line-height:1;text-align:center}
.tp4r-product__rating .star-rating{float:none !important;margin:0 auto !important;display:inline-block !important;font-size:14px;width:5.4em;position:relative;height:1.2em;line-height:1.2em;font-family:star;overflow:hidden !important}
.tp4r-product__rating .star-rating::before{content:"\73\73\73\73\73";color:#e5e7eb;float:none !important;position:absolute;top:0;left:0}
.tp4r-product__rating .star-rating span{overflow:hidden !important;float:none !important;display:block;position:absolute;top:0;left:0;height:100%;padding-top:0}
.tp4r-product__rating .star-rating span::before{content:"\53\53\53\53\53";color:var(--tp4r-color-price,#d9a23b);position:absolute;top:0;left:0}
/* .tp4r-product__price{margin:0 0 10px;color:var(--tp4r-color-price,#d9a23b);font-weight:700;display:flex;gap:8px;justify-content:center;align-items:baseline;flex-wrap:wrap}
.tp4r-product__price ins{color:var(--tp4r-color-price,#d9a23b);text-decoration:none;font-weight:800;font-size:1.05em} */
.tp4r-product__price{
    margin:0 0 10px;
    color:var(--tp4r-color-price, #C98AA2);
    font-weight:400;
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:baseline;
    flex-wrap:wrap;
    direction:ltr !important;
    flex-direction:row-reverse;
    font-family:'Anton', sans-serif;
    font-size:1.5rem
}

.tp4r-product__price ins{
    color:var(--tp4r-color-price, #C98AA2);
    text-decoration:none;
    font-weight:400;
    font-size:1.05em;
    font-family:'Anton', sans-serif
}
.tp4r-product__meta .tp4r-product__price ins .woocommerce-Price-amount,
.tp4r-product__meta .tp4r-product__price > .woocommerce-Price-amount{
    font-weight: 400 !important;
}
.tp4r-product__price del{color:var(--tp4r-color-sale-price,#666666);opacity:.65;font-weight:400;font-size:.82em;font-family:'Anton', sans-serif}
.tp4r-product__price bdi{word-spacing:-0.3em}
.tp4r-product__price .woocommerce-Price-currencySymbol{margin-left:0 !important;margin-right:0 !important;font-size:0.6em}

.tp4r-atc {
    display: inline-block;
    border: var(--tp4r-atc-border-width, 2px) solid var(--tp4r-atc-border, var(--tp4r-color-atc, #000));
    color: var(--tp4r-atc-text, var(--tp4r-color-atc, #000));
    background: var(--tp4r-atc-bg, #fff);
    border-radius: var(--tp4r-atc-border-radius, 10px);
    padding: var(--tp4r-atc-padding-y, 8px) var(--tp4r-atc-padding-x, 16px);
    font-size: var(--tp4r-atc-font-size, 16px);
    font-weight: normal;
    text-decoration: none;
    width: var(--tp4r-atc-width, auto);
    text-align: center;
    transition: all 0.3s ease;
}
.tp4r-atc:hover{
    background: var(--tp4r-atc-bg-hover, var(--tp4r-color-atc, #000));
    color: var(--tp4r-atc-text-hover, #fff);
    border-color: var(--tp4r-atc-border, var(--tp4r-color-atc, #000));
}

.tp4r-pagination ul{display:flex;gap:8px;justify-content:center;list-style:none;padding:0;margin:40px 0 0}
.tp4r-pagination a,.tp4r-pagination span{display:inline-block;padding:8px 12px;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none;color:#111}
.tp4r-pagination .current{background:#111;color:#fff;border-color:#111}

/* Carousel Wrapper */
.tp4r-carousel-wrapper{margin:40px auto;max-width:1200px}
.tp4r-carousel-wrapper.tp4r-rtl{direction:rtl}
.tp4r-carousel__heading{font-size:24px;font-weight:700;margin:0 0 20px;text-align:center}
/* Hide empty elements in carousel */
.tp4r-carousel > p:empty,
.tp4r-carousel > br,
.tp4r-carousel > p:not(:has(*)):not(:empty){display:none !important}
.owl-item:has(> p:empty):not(:has(.tp4r-product)){display:none !important;width:0 !important;margin:0 !important}

/* Owl Carousel Overrides */
.tp4r-carousel .tp4r-product{margin:0 5px}
.tp4r-carousel .owl-nav{position:absolute;top:35%;width:100%;display:flex;justify-content:space-between;pointer-events:none;transform:translateY(-50%)}
.tp4r-carousel .owl-nav button{pointer-events:auto;width:40px;height:40px;background:#fff !important;border-radius:50% !important;box-shadow:0 2px 10px rgba(0,0,0,0.15);display:grid !important;place-items:center;transition:all .2s ease;border:none !important}
.tp4r-carousel .owl-nav button:hover{background:#f3f4f6 !important;box-shadow:0 4px 15px rgba(0,0,0,0.2)}
.tp4r-carousel .owl-nav button .dashicons{font-size:20px;width:20px;height:20px;color:#333}
.tp4r-carousel .owl-nav .owl-prev{margin-left:-20px}
.tp4r-carousel .owl-nav .owl-next{margin-right:-20px}
.tp4r-carousel.tp4r-rtl .owl-nav .owl-prev{margin-left:0;margin-right:-20px}
.tp4r-carousel.tp4r-rtl .owl-nav .owl-next{margin-right:0;margin-left:-20px}
.tp4r-carousel .owl-nav .disabled{opacity:0.3;cursor:default}
.tp4r-carousel .owl-dots{text-align:center;margin-top:20px}
.tp4r-carousel .owl-dots .owl-dot{display:inline-block;margin:0 5px}
.tp4r-carousel .owl-dots .owl-dot span{width:10px;height:10px;background:#d1d5db;border-radius:50%;display:block;transition:all .2s ease}
.tp4r-carousel .owl-dots .owl-dot.active span{background:var(--tp4r-color-price,#d9a23b);transform:scale(1.2)}

/* Product Tabs */
.tp4r-tabs{margin:30px 0}
.tp4r-tabs__nav{display:flex;flex-wrap:wrap;gap:0;border-bottom:2px solid var(--tp4r-tabs-border-color,#e5e7eb)}
.tp4r-tabs__button{padding:14px 28px;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;background:transparent;color:var(--tp4r-tabs-text-inactive,#6b7280);font-weight:600;font-size:15px;cursor:pointer;transition:all .25s ease;position:relative}
.tp4r-tabs__button:hover{color:var(--tp4r-tabs-text-active,#000000);background:rgba(0,0,0,0.02)}
.tp4r-tabs__button.is-active{color:var(--tp4r-tabs-text-active,#000000);border-bottom-color:var(--tp4r-tabs-text-active,#000000);background:transparent}
.tp4r-tabs__panels{background:var(--tp4r-tabs-content-bg,#ffffff);border-radius:0 0 var(--tp4r-tabs-border-radius,8px) var(--tp4r-tabs-border-radius,8px)}
.tp4r-tabs__panel{padding:var(--tp4r-tabs-content-padding,20px) 0;display:none}
.tp4r-tabs__panel.is-active{display:block}
.tp4r-tabs__panel h2{font-size:20px;margin:0 0 16px}
.tp4r-tabs__panel p{margin:0 0 12px;line-height:1.8}
.tp4r-tabs__panel table{width:100%;border-collapse:collapse;border-radius:var(--tp4r-tabs-border-radius,8px);overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.08)}
.tp4r-tabs__panel table th,.tp4r-tabs__panel table td{padding:14px 18px;text-align:start}
.tp4r-tabs__panel table tr{border-bottom:1px solid var(--tp4r-tabs-border-color,#e5e7eb)}
.tp4r-tabs__panel table tr:last-child{border-bottom:none}
.tp4r-tabs__panel table th{font-weight:600;background:var(--tp4r-tabs-bg-inactive,#f8f9fa);width:35%;color:var(--tp4r-tabs-text-inactive,#6b7280)}
.tp4r-tabs__panel table td{background:#fff}

/* Accordion */
.tp4r-accordion{margin:30px 0;display:flex;flex-direction:column;gap:10px}
.tp4r-accordion__item{border:1px solid var(--tp4r-tabs-border-color,#e5e7eb);border-radius:var(--tp4r-tabs-border-radius,8px);overflow:hidden;background:var(--tp4r-tabs-content-bg,#fff);box-shadow:0 1px 3px rgba(0,0,0,0.04);transition:box-shadow .25s ease}
.tp4r-accordion__item:hover{box-shadow:0 3px 10px rgba(0,0,0,0.08)}
.tp4r-accordion__item.is-open{box-shadow:0 4px 14px rgba(0,0,0,0.1)}
.tp4r-accordion__header{width:100%;display:flex !important;flex-direction:row !important;justify-content:space-between !important;align-items:center !important;gap:16px;padding:16px 20px;background:var(--tp4r-tabs-content-bg,#fff);color:var(--tp4r-tabs-text-active,#000);border:none;cursor:pointer;font-size:15px;font-weight:600;transition:background .2s ease}
.tp4r-accordion__header:hover{background:var(--tp4r-tabs-bg-inactive,#f9fafb)}
.tp4r-accordion__item.is-open .tp4r-accordion__header{background:var(--tp4r-tabs-bg-inactive,#f9fafb)}
.tp4r-accordion__title{flex:1;text-align:right}
.tp4r-accordion__icon{width:28px;height:28px;min-width:28px;border-radius:50%;background:var(--tp4r-tabs-bg-inactive,#f3f4f6);display:flex !important;align-items:center !important;justify-content:center !important;transition:all .3s ease;border:1px solid var(--tp4r-tabs-border-color,#e5e7eb)}
.tp4r-accordion__item.is-open .tp4r-accordion__icon{background:var(--tp4r-tabs-text-active,#000);border-color:var(--tp4r-tabs-text-active,#000);transform:rotate(45deg)}
.tp4r-accordion__icon::before{content:'+';font-size:18px;font-weight:300;color:var(--tp4r-tabs-text-inactive,#6b7280);line-height:1}
.tp4r-accordion__item.is-open .tp4r-accordion__icon::before{color:#fff}
.tp4r-accordion__content{background:var(--tp4r-tabs-content-bg,#fff);border-top:1px solid var(--tp4r-tabs-border-color,#e5e7eb)}
.tp4r-accordion__content[hidden]{display:none}
.tp4r-accordion__inner{padding:var(--tp4r-tabs-content-padding,20px)}
.tp4r-accordion__inner h2{font-size:18px;margin:0 0 12px}
.tp4r-accordion__inner p{margin:0 0 12px;line-height:1.8}
.tp4r-accordion__inner table{width:100%;border-collapse:collapse}
.tp4r-accordion__inner table th,.tp4r-accordion__inner table td{padding:12px 16px}
.tp4r-accordion__inner table tr{border-bottom:1px solid var(--tp4r-tabs-border-color,#e5e7eb)}
.tp4r-accordion__inner table tr:last-child{border-bottom:none}
.tp4r-accordion__inner table th{font-weight:600;background:var(--tp4r-tabs-bg-inactive,#f8f9fa);width:35%}

/* RTL - accordion */
.tp4r-accordion.tp4r-rtl .tp4r-accordion__header{flex-direction:row-reverse !important}
.tp4r-accordion.tp4r-rtl .tp4r-accordion__title{text-align:right}
.tp4r-accordion.tp4r-ltr .tp4r-accordion__title{text-align:left}

/* Fancy Quantity Selector */
.tp4r-qty{display:inline-flex !important;align-items:center !important;border:2px solid #d1d5db;border-radius:50px;background:#fff;overflow:hidden;gap:0}
.tp4r-qty__btn{width:44px;height:44px;display:flex !important;align-items:center !important;justify-content:center !important;background:transparent;border:none;cursor:pointer;font-size:20px;font-weight:300;color:#6b7280;transition:all .2s ease;flex-shrink:0}
.tp4r-qty__btn:hover:not(:disabled){color:#111827;background:rgba(0,0,0,0.03)}
.tp4r-qty__btn:disabled{opacity:0.3;cursor:not-allowed}
.tp4r-qty__input{width:50px !important;height:44px !important;border:none !important;background:transparent !important;text-align:center !important;font-size:16px !important;font-weight:600 !important;color:#111827 !important;padding:0 !important;margin:0 !important;-moz-appearance:textfield !important;box-shadow:none !important}
.tp4r-qty__input::-webkit-outer-spin-button,.tp4r-qty__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tp4r-qty__input:focus{outline:none !important}
.tp4r-qty .screen-reader-text{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}

/* Mobile responsive */
@media (max-width:640px){
.tp4r-tabs__nav{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.tp4r-tabs__button{white-space:nowrap;padding:12px 20px;font-size:14px}
.tp4r-accordion__header{padding:14px 16px;font-size:15px}
.tp4r-accordion__inner{padding:16px}
.tp4r-qty__btn{width:38px;height:38px;font-size:18px}
.tp4r-qty__input{width:40px !important;height:38px !important;font-size:15px !important}
}

/* Category Bar */
.tp4r-catbar{margin:0 auto 30px;max-width:1200px;padding:0 15px}
.tp4r-catbar.tp4r-rtl{direction:rtl}
.tp4r-catbar__list{display:flex;gap:20px;overflow-x:auto;padding:10px 0;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;list-style:none;margin:0 0 40px 0;justify-content: center;}
.tp4r-catbar__list::-webkit-scrollbar{display:none}
.tp4r-catbar__item{flex-shrink:0;list-style:none;margin:0;padding:0}
.tp4r-catbar__link{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:inherit;transition:transform .3s ease}
.tp4r-catbar__image{display:block;width:100px;height:100px;overflow:hidden;background:#f3f4f6;transition:all .3s ease}
.tp4r-catbar__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.tp4r-catbar__name{display:block;font-size:13px;font-weight:600;color:#374151;text-align:center;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .3s ease}

/* Image styles */
.tp4r-catbar--circle .tp4r-catbar__image{border-radius:50%}
.tp4r-catbar--rounded .tp4r-catbar__image{border-radius:12px}
.tp4r-catbar--square .tp4r-catbar__image{border-radius:0}

/* Hover effects */
.tp4r-catbar--hover-scale .tp4r-catbar__link:hover .tp4r-catbar__image img{transform:scale(1.1)}
.tp4r-catbar--hover-lift .tp4r-catbar__link:hover{transform:translateY(-5px)}
.tp4r-catbar--hover-glow .tp4r-catbar__link:hover .tp4r-catbar__image{box-shadow:0 0 20px rgba(217,162,59,.4)}
.tp4r-catbar__link:hover .tp4r-catbar__name{color:#d9a23b}

/* Mobile responsive */
@media (max-width:640px){
.tp4r-catbar__image{width:60px;height:60px}
.tp4r-catbar__name{font-size:12px;max-width:70px}
.tp4r-catbar__list{gap:15px}
}
*:focus {
  outline: none;
}

/* Trust Badges */
.tp4r-trust-badges{display:flex;flex-wrap:wrap}
.tp4r-trust-badges--list{flex-direction:column;gap:12px}
.tp4r-trust-badges--grid{flex-direction:row;justify-content:center;gap:20px 30px}
.tp4r-trust-badge{display:flex;align-items:center;gap:10px}
.tp4r-trust-badge--image .tp4r-trust-badge__media{display:flex;align-items:center;justify-content:center}
.tp4r-trust-badge--image .tp4r-trust-badge__media img{max-height:60px;width:auto;object-fit:contain}
.tp4r-trust-badge--icon .tp4r-trust-badge__media .dashicons{font-size:22px;width:22px;height:22px;color:#6b7280}
.tp4r-trust-badge__text{font-size:14px;color:#374151;line-height:1.4}

/* Grid layout - image badges centered with text below */
.tp4r-trust-badges--grid .tp4r-trust-badge{flex-direction:column;text-align:center;gap:8px}
.tp4r-trust-badges--grid .tp4r-trust-badge--image .tp4r-trust-badge__media img{max-height:80px}
.tp4r-trust-badges--grid .tp4r-trust-badge__text{font-size:13px;max-width:120px}

@media (max-width:768px){
.tp4r-trust-badges--grid{gap:15px 20px}
.tp4r-trust-badges--grid .tp4r-trust-badge--image .tp4r-trust-badge__media img{max-height:60px}
}
