/* DinaTech — modern tech-store front end. RTL, mobile-first. */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root{
	--color-bg:#f6f7fb;
	--color-surface:#ffffff;
	--color-surface-2:#eef0f8;
	--color-border:#e3e6f0;
	--color-text:#181b2e;
	--color-text-muted:#666c85;
	--color-primary:#5b5bf6;
	--color-primary-dark:#3f3fd6;
	--color-accent:#00d3c7;
	--color-danger:#ff4d6d;
	--color-warning:#ffb020;
	--gradient-brand:linear-gradient(135deg,#5b5bf6 0%,#8a5bf6 45%,#00d3c7 100%);
	--radius-sm:10px;
	--radius-md:16px;
	--radius-lg:24px;
	--shadow-sm:0 2px 10px rgba(20,22,50,.06);
	--shadow-md:0 12px 32px rgba(20,22,50,.10);
	--container:1240px;
	--font-main:'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
	margin:0;
	font-family:var(--font-main);
	background:var(--color-bg);
	color:var(--color-text);
	line-height:1.8;
	font-size:15px;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}

/* Visually hidden but still readable by screen readers / search engines —
   used for the homepage's page-level H1 and other a11y-only text. */
.screen-reader-text{
	position:absolute!important;
	width:1px;height:1px;
	padding:0;margin:-1px;
	overflow:hidden;
	clip:rect(0,0,0,0);
	white-space:nowrap;
	border:0;
}
.skip-link.screen-reader-text:focus{
	position:fixed!important;
	top:10px;right:10px;
	width:auto;height:auto;
	padding:10px 18px;
	margin:0;
	clip:auto;
	background:var(--color-primary);
	color:#fff;
	border-radius:var(--radius-sm);
	z-index:9999;
}
input,button,textarea,select{font-family:inherit;}

.container{max-width:var(--container);margin:0 auto;padding:0 20px;}
.container-narrow{max-width:820px;}

.skip-link{position:absolute;right:-9999px;top:0;background:var(--color-primary);color:#fff;padding:10px 16px;z-index:999;border-radius:0 0 8px 8px;}
.skip-link:focus{right:0;}

.section{padding:44px 0;}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px;}
.section-title{font-size:22px;font-weight:800;margin:0;position:relative;padding-inline-start:14px;}
.section-title::before{content:"";position:absolute;inset-inline-start:0;top:4px;bottom:4px;width:5px;border-radius:4px;background:var(--gradient-brand);}
.section-more{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--color-primary);font-weight:600;white-space:nowrap;}
.section-more .icon{width:14px;height:14px;transform:scaleX(-1);}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:var(--radius-sm);padding:11px 22px;font-weight:700;font-size:14px;cursor:pointer;transition:.2s;}
.btn-primary{background:var(--gradient-brand);color:#fff;box-shadow:var(--shadow-sm);}
.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px);}
.btn-lg{padding:14px 30px;font-size:15px;}
.btn-sm{padding:7px 14px;font-size:12px;}

.icon{width:18px;height:18px;flex-shrink:0;}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);position:relative;transition:.15s;}
.icon-btn:hover{border-color:var(--color-primary);color:var(--color-primary);}
.icon-btn.is-active{background:var(--color-primary);color:#fff;border-color:var(--color-primary);}
.badge-count{position:absolute;top:-6px;left:-6px;background:var(--color-danger);color:#fff;font-size:10px;min-width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 3px;}

/* ---------- Header ---------- */
.topbar{background:var(--color-text);color:#cfd2f0;font-size:12px;}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;padding:7px 20px;}
.topbar-links{display:flex;gap:16px;}
.topbar-links a:hover{color:#fff;}

.site-header{background:var(--color-surface);border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:60;}
.header-main{display:flex;align-items:center;gap:18px;padding:14px 20px;}
.site-branding{flex-shrink:0;}
.site-logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;color:var(--color-text);}
.logo-mark{color:var(--color-primary);display:inline-flex;}
.logo-text{background:var(--gradient-brand);-webkit-background-clip:text;background-clip:text;color:transparent;}

.header-search{flex:1;display:flex;align-items:center;background:var(--color-surface-2);border-radius:999px;padding:4px 4px 4px 16px;max-width:520px;}
.header-search input{flex:1;border:none;background:transparent;padding:9px 6px;outline:none;font-size:13px;}
.header-search button{width:38px;height:38px;border-radius:50%;background:var(--gradient-brand);color:#fff;display:flex;align-items:center;justify-content:center;border:none;flex-shrink:0;}

.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.cart-count{position:absolute;top:-6px;left:-6px;background:var(--color-primary);color:#fff;font-size:10px;min-width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 3px;}
.mobile-nav-toggle{display:none;}

.main-nav{border-top:1px solid var(--color-border);background:var(--color-surface);}
.dinatech-menu{display:flex;gap:6px;flex-wrap:wrap;}
.dinatech-menu > li{position:relative;}
.nav-link{display:flex;align-items:center;gap:4px;padding:13px 14px;font-size:13.5px;font-weight:600;color:var(--color-text);}
.nav-link:hover{color:var(--color-primary);}
.menu-caret{width:7px;height:7px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px;}

.dinatech-submenu{position:absolute;top:100%;right:0;min-width:220px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s;z-index:50;}
.menu-item-has-children:hover > .dinatech-submenu,
.menu-item-has-children.is-open > .dinatech-submenu{opacity:1;visibility:visible;transform:translateY(0);}
.dinatech-submenu .nav-link{padding:9px 12px;border-radius:8px;}
.dinatech-submenu .nav-link:hover{background:var(--color-surface-2);}

/* Mobile drawer */
.mobile-nav-backdrop{position:fixed;inset:0;background:rgba(10,10,25,.5);z-index:70;opacity:0;visibility:hidden;transition:.2s;}
.mobile-nav-drawer{position:fixed;top:0;bottom:0;right:0;width:82%;max-width:340px;background:var(--color-surface);z-index:80;transform:translateX(100%);transition:.25s;overflow-y:auto;}
body.mobile-nav-open .mobile-nav-backdrop{opacity:1;visibility:visible;}
body.mobile-nav-open .mobile-nav-drawer{transform:translateX(0);}
.mobile-nav-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--color-border);font-weight:700;}
.mobile-menu-list li a{display:block;padding:13px 18px;border-bottom:1px solid var(--color-border);font-weight:600;font-size:14px;}

/* ---------- Trust badges ---------- */
.trust-badges{background:var(--color-surface);border-bottom:1px solid var(--color-border);padding:18px 0;}
.trust-badges-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.trust-badge{display:flex;align-items:center;gap:10px;}
.trust-badge-icon{width:42px;height:42px;border-radius:12px;background:var(--color-surface-2);color:var(--color-primary);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.trust-badge-text{display:flex;flex-direction:column;font-size:12.5px;}
.trust-badge-text strong{font-size:13px;}
.trust-badge-text small{color:var(--color-text-muted);}

/* ---------- Hero flash sale ---------- */
.hero-flash-sale{padding:28px 0;}
.hero-slider{position:relative;border-radius:var(--radius-lg);overflow:hidden;background:var(--gradient-brand);}
.hero-slider-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;}
.hero-slider-track::-webkit-scrollbar{display:none;}
.hero-slide{scroll-snap-align:start;flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:44px 48px;min-height:360px;color:#fff;}
.hero-slide-content{max-width:440px;}
.eyebrow{display:inline-block;background:rgba(255,255,255,.18);padding:5px 14px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:14px;}
.hero-title{font-size:30px;line-height:1.4;margin:0 0 14px;}
.hero-title a{color:#fff;}
.hero-price{font-size:15px;margin-bottom:16px;}
.hero-price del{opacity:.7;margin-inline-start:8px;}
.hero-price ins{text-decoration:none;font-weight:800;font-size:20px;}
.hero-slide .btn-primary{background:#fff;color:var(--color-primary-dark);margin-top:18px;}
.hero-slide-media{position:relative;flex-shrink:0;width:320px;height:280px;}
.hero-media-glow{position:absolute;inset:0;background:rgba(255,255,255,.15);border-radius:50%;filter:blur(30px);}
.hero-slide-media img{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 20px 30px rgba(0,0,0,.25));}

.hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.25);color:#fff;border:none;display:flex;align-items:center;justify-content:center;z-index:5;}
.hero-nav-prev{right:16px;}
.hero-nav-next{left:16px;}
.hero-nav-next .icon{transform:rotate(180deg);}
.hero-dots{position:absolute;bottom:16px;right:50%;transform:translateX(50%);display:flex;gap:6px;}
.hero-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;}
.hero-dots span.is-active{background:#fff;}

/* ---------- Countdown ---------- */
.countdown{display:flex;gap:8px;}
.cd-unit{background:rgba(255,255,255,.15);border-radius:10px;padding:8px 10px;text-align:center;min-width:52px;}
.cd-value{display:block;font-weight:800;font-size:17px;}
.cd-label{font-size:10px;opacity:.85;}
.card-countdown.countdown{gap:4px;margin-top:8px;}
.card-countdown .cd-unit{background:var(--color-surface-2);color:var(--color-text);min-width:auto;flex:1;padding:5px 4px;border-radius:6px;}
.card-countdown .cd-value{font-size:12px;}
.card-countdown .cd-label{font-size:8px;}

/* ---------- Category strip ---------- */
.category-strip{padding:32px 0 0;}
.category-strip-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;}
.category-chip{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:18px 10px;text-align:center;transition:.15s;}
.category-chip:hover{border-color:var(--color-primary);transform:translateY(-2px);box-shadow:var(--shadow-sm);}
.category-chip-icon{width:44px;height:44px;border-radius:12px;background:var(--color-surface-2);color:var(--color-primary);display:flex;align-items:center;justify-content:center;}
.category-chip-icon svg{width:22px;height:22px;}
.category-chip-name{font-size:12.5px;font-weight:600;}

/* ---------- Product carousel / grid ---------- */
.product-carousel{position:relative;}
.product-carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px;}
.product-carousel-track::-webkit-scrollbar{display:none;}
.product-carousel-track > .product-card{scroll-snap-align:start;flex:0 0 240px;}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.carousel-nav{position:absolute;top:40%;width:36px;height:36px;border-radius:50%;background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:center;z-index:5;}
.carousel-prev{right:-14px;}
.carousel-next{left:-14px;}
.carousel-next .icon{transform:rotate(180deg);}

.product-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden;display:flex;flex-direction:column;transition:.18s;position:relative;}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);}
.product-card-media{position:relative;aspect-ratio:1/1;background:var(--color-surface-2);}
.product-card-media img{width:100%;height:100%;object-fit:cover;}
.product-card-media-link{display:block;height:100%;}
.badge{position:absolute;top:10px;font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;z-index:3;}
.badge-sale{right:10px;background:var(--color-danger);color:#fff;}
.card-quick-actions{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:6px;z-index:3;}
.card-quick-actions .icon-btn{width:32px;height:32px;background:rgba(255,255,255,.9);}
.card-quick-actions .icon{width:15px;height:15px;}
.card-countdown{position:absolute;bottom:8px;right:8px;left:8px;display:flex;gap:4px;z-index:3;}

.product-card-body{padding:12px 14px 4px;flex:1;}
.product-card-body .woocommerce-loop-product__title{font-size:13.5px;font-weight:600;margin:0 0 8px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.product-card-body .price{font-size:14px;font-weight:800;color:var(--color-primary-dark);}
.product-card-body .price del{color:var(--color-text-muted);font-weight:400;font-size:12px;margin-inline-start:6px;opacity:.75;}
.product-card-body .price ins{text-decoration:none;}
.product-card-body .star-rating{font-size:11px;margin-bottom:4px;}
.card-swatches{display:flex;gap:5px;margin-top:6px;}
.swatch-dot{width:14px;height:14px;border-radius:50%;border:1px solid var(--color-border);background:linear-gradient(135deg,#5b5bf6,#00d3c7);}

.product-card-footer{padding:10px 14px 16px;}
.product-card-footer .button,
.product-card-footer a.add_to_cart_button,
.product-card-footer a.button{display:flex;align-items:center;justify-content:center;width:100%;background:var(--color-surface-2);color:var(--color-text);border:none;border-radius:var(--radius-sm);padding:9px;font-weight:700;font-size:12.5px;transition:.15s;}
.product-card-footer .button:hover{background:var(--gradient-brand);color:#fff;}

/* ---------- Ranked lists (best-sellers / most-viewed) ---------- */
.two-col-section{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.ranked-list-panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:20px;}
.ranked-list{display:flex;flex-direction:column;gap:4px;}
.ranked-item{display:flex;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid var(--color-border);}
.ranked-item:last-child{border-bottom:none;}
.ranked-number{width:24px;height:24px;border-radius:7px;background:var(--color-surface-2);color:var(--color-text-muted);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ranked-item:nth-child(-n+3) .ranked-number{background:var(--gradient-brand);color:#fff;}
.ranked-thumb{width:44px;height:44px;border-radius:9px;overflow:hidden;flex-shrink:0;background:var(--color-surface-2);}
.ranked-thumb img{width:100%;height:100%;object-fit:cover;}
.ranked-info{display:flex;flex-direction:column;gap:2px;min-width:0;}
.ranked-title{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ranked-price{font-size:12px;color:var(--color-text-muted);}
.ranked-views{font-size:11px;color:var(--color-text-muted);display:flex;align-items:center;gap:4px;}
.ranked-views .icon{width:13px;height:13px;}

/* ---------- Blog ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.blog-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden;transition:.18s;}
.blog-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);}
.blog-card-media{position:relative;display:block;aspect-ratio:16/10;background:var(--color-surface-2);}
.blog-card-media img{width:100%;height:100%;object-fit:cover;}
.blog-card-placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-primary);}
.blog-card-placeholder svg{width:40px;height:40px;}
.blog-card-cat{position:absolute;top:10px;right:10px;background:var(--color-primary);color:#fff;font-size:10px;font-weight:700;padding:4px 10px;border-radius:999px;}
.blog-card-body{padding:14px;}
.blog-card-date{font-size:11px;color:var(--color-text-muted);}
.blog-card-title{font-size:14px;font-weight:700;margin:6px 0;line-height:1.6;}
.blog-card-excerpt{font-size:12.5px;color:var(--color-text-muted);margin:0 0 8px;}
.blog-card-author{font-size:11px;color:var(--color-primary);font-weight:600;}

/* ---------- Footer ---------- */
.site-footer{background:#12142b;color:#c7cae4;margin-top:40px;}
.footer-newsletter{background:var(--gradient-brand);color:#fff;}
.newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 20px;flex-wrap:wrap;}
.newsletter-inner h3{margin:0 0 4px;font-size:18px;}
.newsletter-inner p{margin:0;opacity:.9;font-size:13px;}
.newsletter-form{display:flex;gap:8px;}
.newsletter-form input{border:none;border-radius:999px;padding:11px 16px;min-width:240px;outline:none;}
.newsletter-form .btn-primary{background:#fff;color:var(--color-primary-dark);}

.footer-columns{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:26px;padding:40px 20px;}
.footer-about p{font-size:13px;color:#9ea3c9;}
.social-links{display:flex;gap:8px;margin-top:12px;}
.social-links a{width:34px;height:34px;border-radius:50%;background:#1e2142;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;}
.footer-widget-title{color:#fff;font-size:14px;margin:0 0 14px;}
.footer-col ul li{margin-bottom:9px;}
.footer-col ul li a{font-size:13px;color:#9ea3c9;}
.footer-col ul li a:hover{color:#fff;}
.footer-trust li{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#9ea3c9;margin-bottom:12px;}
.footer-bottom{border-top:1px solid #232650;}
.footer-bottom-inner{padding:16px 20px;font-size:12px;color:#7f84ab;text-align:center;}

/* ---------- Misc / states ---------- */
.dinatech-breadcrumbs{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--color-text-muted);padding:16px 0;}
.dinatech-breadcrumbs a{color:var(--color-text-muted);}
.dinatech-breadcrumbs a:hover{color:var(--color-primary);}
.dinatech-empty-state{text-align:center;padding:60px 20px;color:var(--color-text-muted);}
.dinatech-empty-state .btn{margin-top:14px;}

.compare-table-wrap{overflow-x:auto;}
.compare-table{width:100%;border-collapse:collapse;background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;}
.compare-table th,.compare-table td{border:1px solid var(--color-border);padding:14px;text-align:center;font-size:13px;vertical-align:top;}
.compare-table th{background:var(--color-surface-2);white-space:nowrap;font-weight:700;}
.compare-remove{position:absolute;}
.compare-table td{position:relative;}
.compare-title{display:block;margin-top:8px;font-weight:600;font-size:12.5px;}

.order-tracking-form{display:grid;gap:14px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:22px;margin-bottom:24px;}
.order-tracking-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;}
.order-tracking-form input{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:10px 12px;font-size:13px;}
.order-status-pill{display:inline-block;background:var(--color-surface-2);color:var(--color-primary-dark);font-weight:700;padding:5px 14px;border-radius:999px;font-size:12px;}
.order-items li{padding:8px 0;border-bottom:1px solid var(--color-border);font-size:13px;}

.newsletter-message{font-size:12.5px;margin:10px 2px 0;min-height:1em;}
.newsletter-message.is-success{color:var(--color-accent);}
.newsletter-message.is-error{color:var(--color-danger);}

.faq-intro{margin-bottom:20px;}
.faq-accordion{display:flex;flex-direction:column;gap:10px;}
.faq-item{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:4px 18px;}
.faq-question{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;font-weight:700;font-size:14.5px;cursor:pointer;list-style:none;}
.faq-question::-webkit-details-marker{display:none;}
.faq-caret{width:18px;height:18px;flex:none;transition:transform .2s ease;transform:rotate(90deg);}
.faq-item[open] .faq-caret{transform:rotate(-90deg);}
.faq-answer{padding:0 0 18px;color:var(--color-text-muted);font-size:13.5px;line-height:1.9;}
.faq-answer p:first-child{margin-top:0;}

.single-post-title,.page-title,.archive-title{font-size:26px;font-weight:800;margin:6px 0 18px;}
.single-post-meta{display:flex;gap:14px;font-size:12.5px;color:var(--color-text-muted);margin-bottom:16px;}
.single-post-media{border-radius:var(--radius-md);overflow:hidden;margin-bottom:20px;}
.single-post-content{font-size:15px;line-height:2;}
.single-post-content img{border-radius:var(--radius-md);}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
	.trust-badges-grid{grid-template-columns:repeat(3,1fr);}
	.category-strip-grid{grid-template-columns:repeat(4,1fr);}
	.product-grid,.blog-grid{grid-template-columns:repeat(3,1fr);}
	.two-col-section{grid-template-columns:1fr;}
	.footer-columns{grid-template-columns:1fr 1fr;}
}
@media (max-width:760px){
	.header-search{display:none;}
	.mobile-nav-toggle{display:flex;}
	.main-nav{display:none;}
	.trust-badges-grid{grid-template-columns:repeat(2,1fr);}
	.category-strip-grid{grid-template-columns:repeat(3,1fr);}
	.product-grid,.blog-grid{grid-template-columns:repeat(2,1fr);}
	.hero-slide{flex-direction:column;text-align:center;padding:32px 20px;}
	.hero-slide-content{max-width:100%;}
	.hero-slide-media{width:220px;height:200px;}
	.footer-columns{grid-template-columns:1fr;padding:30px 20px;}
	.newsletter-inner{flex-direction:column;text-align:center;}
	.topbar-inner{flex-direction:column;gap:4px;padding:8px 20px;}
}
