/* Dromit Pharmacy Theme Styles */
@font-face{
	font-family:'Heebo';
	font-weight:300;
	font-style:normal;
	src:url('../fonts/Heebo/Heebo-Light.ttf') format('truetype');
}
@font-face{
	font-family:'Heebo';
	font-weight:400;
	font-style:normal;
	src:url('../fonts/Heebo/Heebo-Regular.ttf') format('truetype');
}
@font-face{
	font-family:'Heebo';
	font-weight:500;
	font-style:normal;
	src:url('../fonts/Heebo/Heebo-Medium.ttf') format('truetype');
}
@font-face{
	font-family:'Heebo';
	font-weight:700;
	font-style:normal;
	src:url('../fonts/Heebo/Heebo-Bold.ttf') format('truetype');
}
@font-face{
	font-family:'Heebo';
	font-weight:900;
	font-style:normal;
	src:url('../fonts/Heebo/Heebo-Black.ttf') format('truetype');
}
:root{
	--color-primary:#0ea5a3; /* teal */
	--color-primary-dark:#0f766e;
	--color-accent:#0f766e; /* blue */
	--color-success:#16a34a;
	--color-warning:#f59e0b;
	--color-danger:#dc2626;
	--color-text:#0f172a;
	--color-muted:#64748b;
	--color-bg:#f8fafc;
	--radius:10px;
}
.wc-block-components-button
{
	background-color: var(--color-primary)!important;
	color:#fff!important;
}

/* Ensure Heebo applies globally and wins over Bootstrap */
html, body{color:var(--color-text);background:var(--color-bg);font-family:'Heebo','almoni-tzar',Arial,sans-serif !important;}
h1, h2, h3, h4, h5, h6, p, a, input, textarea, button, select, .btn, .badge, .nav, .navbar, .dropdown-menu, .form-control{font-family:'Heebo','almoni-tzar',Arial,sans-serif !important;}
.topbar{background:var(--color-primary-dark);} 
.header-main{background:#fff;border-bottom:1px solid #e5e7eb;} 
.site-logo img{max-height:80px;height:auto;width:auto;}
.header-actions .cart-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,var(--color-primary),var(--color-accent));border-radius:50%;color:#fff;}
.header-actions .cart-count{position:absolute;top:-6px;left:-8px;background:var(--color-accent);}

.main-nav{background:#0b1727;color:#fff;}
.main-nav a{color:#fff;}

.hero-section{position:relative;background:linear-gradient(160deg,rgba(15,118,110,.95),rgba(5,43,66,.92));color:#fff;overflow:hidden;}
.hero-section::before{content:"";position:absolute;inset:0;background-image:var(--hero-bg);background-size:cover;background-position:center;opacity:.25;}
.hero-section .container{position:relative;z-index:1;}
.hero-section .btn{backdrop-filter:saturate(1.2);}
.hero-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:var(--radius);} 

.category-card{background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);transition:transform .2s ease, box-shadow .2s ease;}
.category-card:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(2,6,23,.08);} 

.brands-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:16px;gap:16px;}
.brands-grid .brand-item{background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);text-align:center;}
.brands-grid .brand-item img{max-height:80px;object-fit:contain;width:auto;height:auto;}
.brands-grid .brand-text{font-weight:600;color:var(--color-muted);} 

.rx-section .rx-upload-form{background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);padding:16px;}
.rx-section .custom-file{position:relative;}
.rx-section .custom-file-input{width:100%;height:48px;opacity:0;position:relative;z-index:2;}
.rx-section .custom-file-label{position:absolute;top:0;right:0;left:0;height:48px;border:1px dashed var(--color-primary);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--color-primary-dark);background:#f0fdfa;}
.rx-section .custom-file-input:focus ~ .custom-file-label{outline:2px solid var(--color-primary);}
.rx-section .custom-file-label::after{content:'';margin-right:0;}

/* Contact Section */
.contact-section{background:#f8fafc;}
.contact-form-wrapper{max-width:100%;}
.simple-contact-form .form-control{border:1px solid #d1d5db;border-radius:8px;padding:12px;font-size:15px;}
.simple-contact-form .form-control:focus{border-color:var(--color-primary);box-shadow:0 0 0 0.2rem rgba(14,165,163,0.15);}
.simple-contact-form label{font-weight:600;margin-bottom:6px;color:var(--color-text);}
.simple-contact-form textarea{resize:vertical;min-height:120px;}
.contact-upload-form .custom-file{position:relative;}
.contact-upload-form .custom-file-input{width:100%;height:48px;opacity:0;position:relative;z-index:2;}
.contact-upload-form .custom-file-label{position:absolute;top:0;right:0;left:0;height:48px;border:1px dashed var(--color-primary);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--color-primary-dark);background:#f0fdfa;}
.contact-upload-form .custom-file-input:focus ~ .custom-file-label{outline:2px solid var(--color-primary);} 
/* Override Bootstrap's default Browse text */
.custom-file-input:lang(en)~.custom-file-label::after{content:'' !important;display:none;}
.custom-file-input~.custom-file-label::after{content:'' !important;}
.badge-outline{border:1px solid #94a3b8;color:#e2e8f0;background:transparent;border-radius:20px;padding:6px 10px;}

/* WooCommerce cards */
ul.products, .products{list-style:none;padding-left:0;}
.products .product{height:100%;}
.products .woocommerce-LoopProduct-link{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);padding:12px;transition:box-shadow .2s ease,transform .2s ease;height:100%;}
.products .woocommerce-LoopProduct-link img{max-height:180px;object-fit:contain;margin-bottom:8px;}
.woocommerce ul.products li.product, .products .product{display:flex;flex-direction:column;}
.products .product > a, .products .product .woocommerce-LoopProduct-link{flex:1;}
.woocommerce ul.products li.product .button{margin-top:auto;}
.products .woocommerce-LoopProduct-link:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(2,6,23,.08);} 
.products .price{color:var(--color-primary-dark);font-weight:700;}
.products .product .button{display:block;width:100%;text-align:center;border-radius:999px;background:var(--color-primary)!important;border-color:var(--color-primary)!important;color:#fff!important;}
.button, .btn-primary{background:var(--color-primary);border-color:var(--color-primary);} 
.btn-primary:hover{background:var(--color-primary-dark);border-color:var(--color-primary-dark);} 

/* Custom product card */
.product-card{position:relative;background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);padding:12px;transition:box-shadow .2s ease,transform .2s ease;}
.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(2,6,23,.08);} 
.product-card .badge-sale{position:absolute;top:10px;left:10px;background:var(--color-warning);color:#111;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;}
.product-card .pc-image{display:block;text-align:center;margin-bottom:8px;}
.product-card .pc-image img{max-height:180px;width:100%;object-fit:contain;}
.product-card .pc-title{display:block;color:var(--color-text);margin-bottom:6px;}
.product-card .pc-price{color:var(--color-primary-dark);font-weight:700;}


.customsingleproduct .price 
{
	color: #ff9800;
    font-size: 29px;
}
/* Footer */
.site-footer .bg-black-90{background:#0b1727;}

/* Utilities */
.opacity-75{opacity:.75;}

/* Search UI */
.header-search .search-form{position:relative;}
.header-search .search-field{width:100%;border:1px solid #d1d5db;border-radius:999px;padding:.75rem 3rem .75rem 1.25rem;}
.header-search .search-submit{position:absolute;top:50%;transform:translateY(-50%);left:.5rem;border:0;background:var(--color-primary);color:#fff;border-radius:999px;padding:.5rem .9rem;}

/* Search suggestions dropdown */
.search-suggestions{position:absolute;z-index:1000;top:calc(100% + 6px);right:0;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 18px rgba(2,6,23,.08);padding:8px;display:none;}
.search-suggestions.open{display:block;}
.search-suggestions.loading{opacity:.7;}
.search-suggestions .ds-heading{font-weight:700;color:var(--color-muted);font-size:12px;padding:6px 8px;}
.search-suggestions .ds-list{list-style:none;margin:0;padding:0;}
.search-suggestions .ds-item{display:flex;align-items:center;padding:8px;border-radius:10px;transition:background .15s;}
.search-suggestions .ds-item:hover{background:#f8fafc;}
.search-suggestions .ds-thumb{width:36px;height:36px;object-fit:contain;border-radius:6px;margin-left:8px;margin-right:0;background:#fff;border:1px solid #e5e7eb;}
.search-suggestions .ds-link{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--color-text);} 
.search-suggestions .ds-title{font-size:14px;}
.search-suggestions .ds-price{font-size:13px;color:var(--color-primary-dark);font-weight:700;}
.search-suggestions .ds-empty{padding:12px;color:var(--color-muted);text-align:center;}

/* Single product: gallery tweaks */
.woocommerce-product-gallery{position:relative;background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);}
.woocommerce-product-gallery .flex-viewport{border-bottom:1px solid #e5e7eb;direction:ltr;}
.woocommerce-product-gallery__image img{width:100%;height:auto;max-height:450px;object-fit:contain;display:block;margin:0 auto;}
.woocommerce-product-gallery .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;margin:0;list-style:none;}
.woocommerce-product-gallery .flex-control-thumbs li{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff;}
.woocommerce-product-gallery .flex-control-thumbs img{width:100%;height:70px;object-fit:cover;}

/* Trust badges */
.product-trust{margin-top:12px;}
.product-trust ul{display:flex;gap:12px;}
.product-trust li{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;box-shadow:0 2px 6px rgba(2,6,23,.04);} 
.product-trust li:before{content:"";display:inline-block;width:18px;height:18px;border-radius:50%;background:var(--color-primary);} 

/* Brand meta */
.product-brand .label{color:var(--color-muted);margin-left:6px;}

/* Tabs */
.woocommerce-tabs .wc-tabs{border-bottom:1px solid #e5e7eb;}
.woocommerce-tabs .wc-tabs .nav-link{border:0;color:var(--color-muted);} 
.woocommerce-tabs .wc-tabs .nav-link.active{color:var(--color-text);font-weight:700;}

/* ACF Accordion */
.product-accordion .pa-list{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;}
.product-accordion .pa-item+.pa-item{border-top:1px solid #e5e7eb;}
.product-accordion .pa-header{width:100%;text-align:right;background:#f8fafc;border:0;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;font-weight:700;}
.product-accordion .pa-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--color-primary);color:#fff;}
.product-accordion .pa-content{padding:12px 30px;}

/* Related products grid alignment */
.related.products{margin-top:16px;}
.related.products h2{font-size:28px;margin-bottom:16px;text-align:center;}
.related.products ul.products{display:flex;flex-wrap:wrap;gap:16px;}
/* Reset bootstrap column sizing inside related grid */
.related.products ul.products li.product{margin:0!important;flex:1 1 calc(25% - 16px);max-width:none!important;padding-left:0;padding-right:0;}
@media (max-width:991.98px){
  .related.products ul.products li.product{flex:1 1 calc(33.333% - 16px);}
}
@media (max-width:767.98px){
  .related.products ul.products li.product{flex:1 1 calc(50% - 16px);}
}
.related.products ul.products li.product{display:flex;flex-direction:column;}
.related.products .woocommerce-LoopProduct-link{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);padding:12px;transition:box-shadow .2s ease,transform .2s ease;height:100%;}
.related.products .woocommerce-LoopProduct-link img{max-height:180px;object-fit:contain;margin-bottom:8px;}
.related.products .woocommerce-loop-product__title{min-height:75px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.related.products .woocommerce-LoopProduct-link:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(2,6,23,.08);} 
.related.products .products .product > a,.related.products .product > a{flex:1;}
.related.products .mt-2{margin-top:auto;}
.related.products .price{color:var(--color-primary-dark);font-weight:700;}
.related.products .button{display:block;width:100%;text-align:center;background:var(--color-primary)!important;border-color:var(--color-primary)!important;color:#fff!important;border-radius:999px;padding:8px 12px;}


.topbar{background:var(--color-primary-dark);} 
.button, .btn-primary{background:var(--color-primary)!important;border-color:var(--color-primary)!important;}
.btn-primary:hover{background:var(--color-primary-dark)!important;border-color:var(--color-primary-dark)!important;}
.header-actions .cart-icon{background:linear-gradient(135deg,var(--color-primary),var(--color-accent));}
.header-actions .cart-count{background:var(--color-accent);} 
.hero-section{background:linear-gradient(160deg, rgb(15 118 110), rgb(33 36 40));}

/* RTL gallery/lightbox fixes */
.single-product .woocommerce-product-gallery{direction:ltr;}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev{right:auto;left:8px;}
.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next{left:auto;right:8px;}
.pswp{direction:ltr;}
.pswp__caption__center{text-align:right;direction:rtl;}

/* Inline quantity + add to cart */
.single-product .summary form.cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.single-product .summary form.cart .quantity{margin:0;order:1;}
.single-product .summary form.cart .single_add_to_cart_button{order:2;}
.single-product .quantity .qty{width:110px;height:44px;border:1px solid #d1d5db;border-radius:999px;padding:0 12px;text-align:center;direction:ltr;background:#fff;}
.single-product .single_add_to_cart_button, .single-product .button.alt{height:44px;line-height:44px;background:var(--color-primary)!important;border-color:var(--color-primary)!important;color:#fff!important;border-radius:999px;padding:0 18px;font-weight:700;}
.single-product .single_add_to_cart_button:hover, .single-product .button.alt:hover{background:var(--color-primary-dark)!important;border-color:var(--color-primary-dark)!important;}

/* Catalog header and sorting */
.woocommerce-products-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.woocommerce-products-header .woocommerce-products-header__title{margin:0;}
.woocommerce-products-header .term-description{margin:0;color:var(--color-muted);} 
.woocommerce-result-count{margin:0 0 12px 0;color:var(--color-muted);} 
.woocommerce-ordering{margin:0 0 12px 0;}
.woocommerce-ordering select{border:1px solid #d1d5db;border-radius:999px;padding:6px 12px;background:#fff;}

.breadcrumbs{font-size:14px;margin:0 0 10px 0;color:var(--color-muted);} 
.breadcrumbs a{color:var(--color-text);} 
.breadcrumbs .breadcrumb_last{color:var(--color-muted);} 

.products.columns-4 
{
    display: flex;

    flex-wrap: wrap;
}

.products.columns-4 .product 
{
	display: flex;
	flex-direction: column;
	padding: 10px!important;
	margin: 0;
	float: right;
	margin: 0!important;
}

.products.columns-4 .product  .woocommerce-loop-product__title 
{
	min-height: 75px;
}

.products.columns-4 .product  .price 
{
	color: #ff9800!important;
    font-size: 24px!important;
}