
/* =========================================================
   RCCart brand overrides
   ========================================================= */
body.rccart-child-theme{
	--rccart-blue:#3A7FC1;
	--rccart-blue-dark:#27669F;
	--wd-primary-color:#3A7FC1;
	--wd-alternative-color:#27669F;
	--wd-link-color:#3A7FC1;
	--wd-link-color-hover:#27669F;
}

/* Remove WoodMart page-title/banner from the RCCart homepage.
   This eliminates the unwanted "Blog" title above the hero. */
body.rccart-child-theme.home .page-title,
body.rccart-child-theme.home .wd-page-title,
body.rccart-child-theme.home .wd-page-title-wrap,
body.rccart-child-theme.home .page-title-default{
	display:none !important;
}

/* RCCart blue replaces the WoodMart demo green category/menu bar. */
body.rccart-child-theme .wd-header-cats,
body.rccart-child-theme .wd-header-cats .menu-opener,
body.rccart-child-theme .wd-header-cats .menu-opener:hover,
body.rccart-child-theme .wd-header-cats .menu-opener:focus{
	background-color:#3A7FC1 !important;
	color:#fff !important;
}

body.rccart-child-theme .wd-header-cats .menu-opener,
body.rccart-child-theme .wd-header-cats .menu-opener a,
body.rccart-child-theme .wd-header-cats .menu-opener .menu-opener-text{
	color:#fff !important;
}

/* Primary buttons, active states and WooCommerce actions. */
body.rccart-child-theme .btn,
body.rccart-child-theme .button,
body.rccart-child-theme .wd-button,
body.rccart-child-theme .add_to_cart_button,
body.rccart-child-theme .single_add_to_cart_button,
body.rccart-child-theme .checkout-button,
body.rccart-child-theme button[name="add-to-cart"]{
	background-color:#3A7FC1 !important;
	border-color:#3A7FC1 !important;
	color:#fff !important;
}

body.rccart-child-theme .btn:hover,
body.rccart-child-theme .button:hover,
body.rccart-child-theme .wd-button:hover,
body.rccart-child-theme .add_to_cart_button:hover,
body.rccart-child-theme .single_add_to_cart_button:hover,
body.rccart-child-theme .checkout-button:hover,
body.rccart-child-theme button[name="add-to-cart"]:hover{
	background-color:#27669F !important;
	border-color:#27669F !important;
	color:#fff !important;
}

/* Links and WoodMart active navigation accents. */
body.rccart-child-theme a:hover,
body.rccart-child-theme .wd-nav-main > li.current-menu-item > a,
body.rccart-child-theme .wd-nav-main > li.current-menu-ancestor > a,
body.rccart-child-theme .wd-nav-shop > li.current-menu-item > a,
body.rccart-child-theme .wd-nav-shop > li.current-menu-ancestor > a{
	color:#3A7FC1 !important;
}

/* Counts/badges should use the RCCart blue. */
body.rccart-child-theme .wd-tools-count,
body.rccart-child-theme .wd-product-count,
body.rccart-child-theme .wd-cart-number,
body.rccart-child-theme .wd-header-cart .wd-tools-count{
	background-color:#3A7FC1 !important;
	color:#fff !important;
}

/* Form focus/active accents. */
body.rccart-child-theme input:focus,
body.rccart-child-theme textarea:focus,
body.rccart-child-theme select:focus{
	border-color:#3A7FC1 !important;
	box-shadow:0 0 0 1px #3A7FC1 !important;
}

/* =========================================================
   RCCart catalog styles
   ========================================================= */
:root{
	--rccart-blue:#3A7FC1;
	--rccart-blue-dark:#27669f;
	--rccart-text:#1d1d1f;
	--rccart-muted:#6b7280;
	--rccart-border:#e7e7e7;
	--rccart-bg:#f7f8fa;
}

.rccart-child-theme .rccart-home{overflow:hidden}
.rccart-home .container{width:min(1440px,calc(100% - 40px));margin:0 auto}
.rccart-section{padding:52px 0}
.rccart-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.rccart-section-heading h2{margin:0;font-size:28px;line-height:1.15;color:var(--rccart-text);font-weight:700}
.rccart-section-heading p{margin:0;color:var(--rccart-muted)}

.rccart-hero{position:relative;min-height:520px;background:#eef3f7 center/cover no-repeat;display:flex;align-items:center}
.rccart-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.85) 38%,rgba(255,255,255,.12) 72%,rgba(255,255,255,0) 100%)}
.rccart-hero-inner{position:relative;z-index:1;padding:70px 0;width:100%}
.rccart-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:13px;font-weight:700;color:var(--rccart-blue);margin-bottom:12px}
.rccart-hero h1{font-size:clamp(42px,5vw,72px);line-height:.98;margin:0 0 18px;max-width:650px;color:#111}
.rccart-hero p{font-size:18px;line-height:1.6;color:#555;max-width:590px;margin:0 0 28px}
.rccart-search{display:flex;max-width:680px;background:#fff;border:1px solid #ddd;border-radius:4px;padding:6px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.rccart-search input{border:0!important;box-shadow:none!important;flex:1;height:52px;padding:0 16px;font-size:16px}
.rccart-search button{background:var(--rccart-blue);color:#fff;border:0;border-radius:3px;padding:0 25px;font-weight:700;cursor:pointer}
.rccart-search button:hover{background:var(--rccart-blue-dark)}

.rccart-hero-banners{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px;max-width:680px}
.rccart-promo{min-height:120px;border-radius:5px;overflow:hidden;background:#20242a center/cover no-repeat;padding:22px;color:#fff;display:flex;flex-direction:column;justify-content:end}
.rccart-promo h3{margin:0 0 5px;font-size:20px;color:#fff}
.rccart-promo a{color:#fff;font-weight:700;font-size:13px;text-transform:uppercase}

.rccart-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.rccart-category-card{display:flex;min-height:118px;border:1px solid var(--rccart-border);background:#fff;border-radius:5px;padding:18px;align-items:end;position:relative;overflow:hidden;transition:.2s}
.rccart-category-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.07)}
.rccart-category-card h3{margin:0;position:relative;z-index:2;font-size:16px}
.rccart-category-card a{position:absolute;inset:0;z-index:3}
.rccart-category-card .rccart-cat-count{position:absolute;right:12px;top:12px;color:#888;font-size:11px}

.rccart-products-tabs{background:#fff}
.rccart-tab-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid var(--rccart-border)}
.rccart-product-tab{appearance:none;border:0;background:transparent;padding:12px 15px;font-weight:700;color:#777;cursor:pointer;border-bottom:2px solid transparent}
.rccart-product-tab.active{color:var(--rccart-blue);border-color:var(--rccart-blue)}
.rccart-products-stage{position:relative;min-height:300px}
.rccart-products-stage.is-loading{opacity:.45;pointer-events:none}
.rccart-carousel-controls{display:flex;justify-content:flex-end;gap:8px;margin-bottom:10px}
.rccart-carousel-controls button{width:38px;height:38px;border:1px solid #ddd;background:#fff;border-radius:50%;cursor:pointer}
.rccart-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 75px)/6);gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:8px}
.rccart-carousel::-webkit-scrollbar{display:none}
.rccart-carousel .product{min-width:0;scroll-snap-align:start}
.rccart-carousel .product .product-wrapper{height:100%}

/* RCCart homepage product titles: keep them compact like the Shop grid. */
.rccart-carousel .wd-entities-title,
.rccart-carousel .wd-entities-title a,
.rccart-carousel .product-title,
.rccart-carousel .product-title a{
	font-size:15px !important;
	line-height:1.35 !important;
	font-weight:600 !important;
	letter-spacing:0 !important;
	margin-bottom:8px !important;
}
/* Match the Shop archive's standard WoodMart product-card presentation. */
.rccart-carousel .wd-hover-standard .wd-product-wrapper{height:auto}
.rccart-carousel .wd-hover-standard .product-element-bottom{padding-top:12px}
.rccart-carousel .wd-hover-standard .wd-add-btn{margin-top:8px}
.rccart-carousel .wd-hover-standard .product-element-bottom .wd-product-card-hover{display:none}

.rccart-deals{background:var(--rccart-bg)}
.rccart-deals-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}
.rccart-deal{min-height:280px;background:#ddd center/cover no-repeat;border-radius:5px;padding:28px;display:flex;flex-direction:column;justify-content:end;position:relative;overflow:hidden}
.rccart-deal:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.65),transparent 65%)}
.rccart-deal>*{position:relative;z-index:1;color:#fff}
.rccart-deal h3{margin:0 0 8px;color:#fff;font-size:26px}
.rccart-deal p{margin:0 0 15px;color:#fff}
.rccart-deal a{color:#fff;font-weight:700}

.rccart-brands{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.rccart-brand{min-height:90px;border:1px solid var(--rccart-border);display:flex;align-items:center;justify-content:center;background:#fff;border-radius:4px;font-weight:700;color:#333}

.rccart-specifications{margin-top:45px;padding:50px 0;background:var(--rccart-bg)}
.rccart-spec-table{border:1px solid var(--rccart-border);background:#fff;border-radius:4px;overflow:hidden}
.rccart-spec-row{display:grid;grid-template-columns:30% 70%;border-bottom:1px solid var(--rccart-border)}
.rccart-spec-row:last-child{border-bottom:0}
.rccart-spec-label,.rccart-spec-value{padding:14px 18px}
.rccart-spec-label{font-weight:700;background:#fafafa}
.rccart-spec-value{color:#444}

.rccart-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--rccart-border)}
.rccart-filter-chip{display:inline-flex;align-items:center;border:1px solid #ddd;background:#fff;padding:9px 13px;border-radius:3px;color:#333;font-size:13px}
.rccart-filter-chip:hover{border-color:var(--rccart-blue);color:var(--rccart-blue)}

.rccart-empty-products{padding:60px 20px;text-align:center;color:#777}

@media (max-width:1100px){
	.rccart-category-grid{grid-template-columns:repeat(3,1fr)}
	.rccart-carousel{grid-auto-columns:calc((100% - 30px)/3)}
	.rccart-brands{grid-template-columns:repeat(4,1fr)}
	.rccart-deals-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:767px){
	.rccart-home .container{width:calc(100% - 28px)}
	.rccart-section{padding:38px 0}
	.rccart-hero{min-height:560px}
	.rccart-hero:before{background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.75))}
	.rccart-hero-inner{padding:50px 0}
	.rccart-hero h1{font-size:42px}
	.rccart-search{display:block;padding:6px}
	.rccart-search input{width:100%}
	.rccart-search button{width:100%;height:48px}
	.rccart-hero-banners{grid-template-columns:1fr}
	.rccart-category-grid{grid-template-columns:repeat(2,1fr);gap:10px}
	.rccart-category-card{min-height:100px;padding:14px}
	.rccart-carousel{grid-auto-columns:calc((100% - 10px)/2)}
	.rccart-carousel .wd-entities-title,
	.rccart-carousel .wd-entities-title a,
	.rccart-carousel .product-title,
	.rccart-carousel .product-title a{
		font-size:14px !important;
		line-height:1.35 !important;
	}
	.rccart-brands{grid-template-columns:repeat(2,1fr)}
	.rccart-deals-grid{grid-template-columns:1fr}
	.rccart-deal{min-height:220px}
	.rccart-spec-row{grid-template-columns:1fr}
	.rccart-spec-label{padding-bottom:7px}
	.rccart-spec-value{padding-top:7px}
}

/* =========================================================
   RCCart Dokan Store Listing
   ========================================================= */
body.rccart-child-theme .rccart-store-list-page{width:100%;}
body.rccart-child-theme .rccart-store-list-header{padding:58px 0 44px;background:#f7f8fa;border-bottom:1px solid #e7e7e7;}
body.rccart-child-theme .rccart-store-list-header h1{margin:0 0 10px;font-size:42px;line-height:1.1;color:#111;font-weight:700;}
body.rccart-child-theme .rccart-store-list-header p{margin:0;max-width:760px;color:#6b7280;font-size:17px;line-height:1.6;}
body.rccart-child-theme .rccart-store-list-content{padding-top:42px;padding-bottom:60px;}
body.rccart-child-theme .rccart-store-list-content .dokan-store-list-filter-wrap,
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter{margin-bottom:24px;}
body.rccart-child-theme .rccart-store-list-content .store-wrapper{border:1px solid #e7e7e7;border-radius:6px;overflow:hidden;background:#fff;}
body.rccart-child-theme .rccart-store-list-content .store-wrapper:hover{box-shadow:0 8px 24px rgba(0,0,0,.07);}
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter button,
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter input:focus,
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter select:focus{border-color:#3A7FC1;}
body.rccart-child-theme .rccart-store-list-content .dokan-btn,
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter .dokan-btn{background:#3A7FC1;border-color:#3A7FC1;color:#fff;}
body.rccart-child-theme .rccart-store-list-content .dokan-btn:hover,
body.rccart-child-theme .rccart-store-list-content .dokan-store-listing-filter .dokan-btn:hover{background:#27669F;border-color:#27669F;color:#fff;}
@media (max-width:767px){
	body.rccart-child-theme .rccart-store-list-header{padding:38px 0 30px;}
	body.rccart-child-theme .rccart-store-list-header h1{font-size:34px;}
	body.rccart-child-theme .rccart-store-list-header p{font-size:15px;}
	body.rccart-child-theme .rccart-store-list-content{padding-top:28px;padding-bottom:40px;}
}


/* RCCart Dokan utility pages */
.rccart-store-list-page .rccart-store-list-header,
.rccart-dokan-page-header {
	background: #f5f8fc;
	padding: 42px 0 34px;
	border-bottom: 1px solid #e7edf4;
}
.rccart-store-list-page .rccart-store-list-header h1,
.rccart-dokan-page-header h1 {
	margin: 8px 0 8px;
}
.rccart-store-list-page .rccart-store-list-header p,
.rccart-dokan-page-header p {
	margin: 0;
	color: #687385;
}
