/* fadfar.com.ng/assets/css/home-rows.css */

/* =========================================================
   HOME PAGE: horizontally scrolling rows
   ========================================================= */
.hr-sec{--c:#2d8a3e;--bg:#f4faf5;--tx:#222;margin:22px 0;padding:18px 0;background:var(--bg)}
.hr-in{max-width:1250px;margin:0 auto;padding:0 15px}
.hr-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.hr-head h2{margin:0;font-size:20px;font-weight:700;color:var(--tx);display:flex;align-items:center;gap:10px}
.hr-head h2 i{color:var(--c)}
.hr-more{font-size:14px;font-weight:600;color:var(--c);text-decoration:none;white-space:nowrap}
.hr-more:hover{text-decoration:underline;color:var(--c)}
.hr-wrap{position:relative}
.hr-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:6px 2px 14px;scrollbar-width:thin}
.hr-track::-webkit-scrollbar{height:6px}
.hr-track::-webkit-scrollbar-thumb{background:var(--c);border-radius:6px;opacity:.5}
.hr-arrow{position:absolute;top:42%;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:var(--c);box-shadow:0 3px 10px rgba(0,0,0,.25);cursor:pointer;z-index:5;font-size:18px}
.hr-arrow.l{left:-10px}
.hr-arrow.r{right:-10px}
.hr-arrow:hover{background:var(--c);color:#fff}

/* =========================================================
   PRODUCT CARD (shared by every page)
   ========================================================= */
.hr-card{position:relative;flex:0 0 190px;scroll-snap-align:start;background:#fff;border:1px solid #ececec;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.hr-card:hover{box-shadow:0 8px 22px rgba(0,0,0,.12);transform:translateY(-2px)}
.hr-img{position:relative;display:block;aspect-ratio:1/1;background:#fafafa}
.hr-img img{width:100%;height:100%;object-fit:contain;padding:10px;display:block}
.hr-tag{position:absolute;top:10px;left:10px;background:#d93025;color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px;z-index:2}
.hr-tag.disc{background:#ef6c00}
.hr-out{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,.7);display:flex;align-items:center;justify-content:center;font-weight:700;color:#666;font-size:13px}
.hr-plus{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:50%;background:var(--c);color:#fff;font-size:22px;line-height:1;cursor:pointer;z-index:3;box-shadow:0 3px 8px rgba(0,0,0,.3);transition:transform .2s;padding:0}
.hr-card.open .hr-plus{transform:rotate(45deg);background:#555}
.hr-body{padding:10px 12px 12px;display:flex;flex-direction:column;flex:1}
.hr-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px;font-size:13px;line-height:1.4;font-weight:600;color:#222;text-decoration:none;margin-bottom:6px}
.hr-name:hover{color:var(--c);text-decoration:none}
.hr-price{font-size:16px;font-weight:700;color:var(--c)}
.hr-old{margin-left:6px;font-size:12px;color:#999;text-decoration:line-through;font-weight:400}
.hr-buy{display:none;margin:10px 0 0;flex-direction:column;gap:8px}
.hr-card.open .hr-buy{display:flex}
.hr-qty{display:flex;border:1px solid #d9d9d9;border-radius:8px;overflow:hidden;background:#fff}
.hr-qty button{flex:0 0 36px;border:0;background:#f3f3f3;font-size:18px;cursor:pointer;padding:0}
.hr-qty button:hover{background:var(--c);color:#fff}
.hr-qty input,
.hr-card .hr-qty input[type=number]{flex:1;min-width:0;width:100%;height:34px;border:0;text-align:center;font-weight:700;font-size:15px;color:#222 !important;-webkit-text-fill-color:#222;background:#fff !important;opacity:1;-moz-appearance:textfield;box-shadow:none}
.hr-qty input::-webkit-outer-spin-button,
.hr-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hr-qty input:focus{outline:none}
.hr-add{border:0;border-radius:8px;background:var(--c);color:#fff;padding:9px 0;font-size:13px;font-weight:600;cursor:pointer}
.hr-add:hover{opacity:.9}

/* Rating */
.hr-rate{display:flex;align-items:center;gap:4px;margin:-2px 0 6px;font-size:11px;color:#888;line-height:1}
.hr-stars{display:inline-block;font-size:12px;letter-spacing:1px;line-height:1;background:linear-gradient(90deg,#f5a623 calc(var(--r) / 5 * 100%),#ddd 0);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.hr-stars:before{content:"\2605\2605\2605\2605\2605"}

/* =========================================================
   THEMES (home page rows)
   ========================================================= */
/* 1: green banner */
.th-1{--c:#2d8a3e;--bg:#f4faf5}
.th-1 .hr-head{background:linear-gradient(90deg,#2d8a3e,#56b366);padding:12px 18px;border-radius:12px}
.th-1 .hr-head h2,.th-1 .hr-head h2 i,.th-1 .hr-more{color:#fff}
/* 2: warm, thick left bar */
.th-2{--c:#ef6c00;--bg:#fff6ec}
.th-2 .hr-head h2{border-left:6px solid var(--c);padding-left:12px}
.th-2 .hr-card{border-radius:6px;border-bottom:3px solid var(--c)}
/* 3: dark navy */
.th-3{--c:#29b6f6;--bg:#12233d;--tx:#fff}
.th-3 .hr-card{border:0}
.th-3 .hr-arrow{background:#29b6f6;color:#12233d}
/* 4: lavender, pill title */
.th-4{--c:#7e57c2;--bg:#f3eefb}
.th-4 .hr-head h2{background:#fff;padding:8px 20px 8px 10px;border-radius:40px;box-shadow:0 3px 10px rgba(126,87,194,.2)}
.th-4 .hr-head h2 i{background:var(--c);color:#fff;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px}
.th-4 .hr-card{border-radius:22px}
/* 5: rose, dashed underline */
.th-5{--c:#d81b60;--bg:#fff0f5}
.th-5 .hr-head{border-bottom:2px dashed var(--c);padding-bottom:10px}
.th-5 .hr-card{border:2px solid #f8bbd0;border-radius:16px}
/* 6: teal outline box */
.th-6{--c:#00897b;--bg:#eefaf8}
.th-6 .hr-head{border:2px solid var(--c);padding:10px 16px;border-radius:10px;background:#fff}
.th-6 .hr-card{border-top:4px solid var(--c)}
/* flash */
.th-flash{--c:#e53935;--bg:#fdecea}
.th-flash .hr-head{background:linear-gradient(90deg,#c62828,#ff7043);padding:12px 18px;border-radius:12px}
.th-flash .hr-head h2,.th-flash .hr-head h2 i,.th-flash .hr-more{color:#fff}
/* special deals: gold and deep purple */
.th-deal{--c:#6a1b9a;--bg:#fff8e1}
.th-deal .hr-head{background:linear-gradient(90deg,#4a148c,#8e24aa);padding:12px 18px;border-radius:12px}
.th-deal .hr-head h2,.th-deal .hr-head h2 i,.th-deal .hr-more{color:#ffd54f}
.th-deal .hr-card{border:2px solid #ffe082;border-radius:16px}
.th-deal .hr-arrow{background:#ffd54f;color:#4a148c}

/* =========================================================
   LISTING PAGES (products, items, categories): normal grid,
   no horizontal scrolling
   ========================================================= */
.hr-page{--c:#2d8a3e;--bg:#fff;--tx:#222;width:100%}
.hr-page .hr-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:16px;overflow:visible !important}
.hr-page .hr-grid > .hr-card{flex:none !important;width:auto !important;min-width:0;scroll-snap-align:none}
.pl-layout > main{min-width:0}

@media(max-width:1199px){
.hr-page .hr-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media(max-width:991px){
.hr-page .hr-grid{gap:12px}
}


/* 8 cards per row (used by "You May Also Like") */
.hr-page .hr-grid.hr-grid-8{grid-template-columns:repeat(8,minmax(0,1fr)) !important;gap:10px}
.hr-grid-8 .hr-card{border-radius:10px}
.hr-grid-8 .hr-img img{padding:6px}
.hr-grid-8 .hr-body{padding:7px 8px 9px}
.hr-grid-8 .hr-name{font-size:11px;min-height:30px;-webkit-line-clamp:2}
.hr-grid-8 .hr-price{font-size:12px}
.hr-grid-8 .hr-old{display:block;margin:0;font-size:10px}
.hr-grid-8 .hr-tag{top:6px;left:6px;font-size:9px;padding:2px 6px}
.hr-grid-8 .hr-plus{top:6px;right:6px;width:26px;height:26px;font-size:17px}
.hr-grid-8 .hr-add{font-size:11px;padding:7px 0}
.hr-grid-8 .hr-qty button{flex-basis:26px}
.hr-grid-8 .hr-qty input{height:28px;font-size:13px}
.hr-grid-8 .hr-rate{font-size:10px}
.hr-grid-8 .hr-stars{font-size:10px}

@media(max-width:1199px){.hr-page .hr-grid.hr-grid-8{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}
@media(max-width:991px){.hr-page .hr-grid.hr-grid-8{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}
@media(max-width:575px){.hr-page .hr-grid.hr-grid-8{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}

/* "You May Also Like": 4 cards per row on phones (single.php and cart.php) */
@media(max-width:575px){
.hr-page .hr-grid.hr-grid-8{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:5px}
.hr-grid-8 .hr-card{border-radius:8px}
.hr-grid-8 .hr-img img{padding:3px}
.hr-grid-8 .hr-body{padding:5px 5px 7px}
.hr-grid-8 .hr-name{font-size:9px;min-height:24px;line-height:1.25;margin-bottom:3px}
.hr-grid-8 .hr-price{font-size:10px}
.hr-grid-8 .hr-old{display:none}
.hr-grid-8 .hr-tag{top:3px;left:3px;font-size:7px;padding:1px 4px}
.hr-grid-8 .hr-plus{top:3px;right:3px;width:20px;height:20px;font-size:14px}
.hr-grid-8 .hr-rate{display:none}
.hr-grid-8 .hr-add{font-size:9px;padding:6px 0}
.hr-grid-8 .hr-qty button{flex-basis:20px;font-size:14px}
.hr-grid-8 .hr-qty input{height:24px;font-size:11px}
}

/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:767px){
.hr-sec{margin:14px 0;padding:12px 0}
.hr-in{padding:0 10px}
.hr-head h2{font-size:16px}
.hr-card{flex-basis:150px}
.hr-arrow{display:none}
.hr-name{font-size:12px;min-height:34px}
.hr-price{font-size:14px}
}
@media(max-width:575px){
.hr-page .hr-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}
}







