/*
Theme Name: ColCo Deals Marketplace
Theme URI: https://colcodeals.com/
Author: Dreamboro
Description: Responsive ColCo Deals marketplace based on the approved visual design.
Version: 0.2.3
Requires PHP: 7.4
Text Domain: colcodeals-theme
*/
:root{--green:#087a09;--dark:#080d1d;--muted:#606773;--line:#e5e7eb;--soft:#f4f5f6}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--dark);font:15px/1.45 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}.ccd-container{max-width:1510px;margin:auto;padding:0 24px}.ccd-topbar{display:flex;align-items:center;gap:20px;padding:14px 22px;border-bottom:1px solid var(--line);min-height:80px}.ccd-menu-btn{background:none;border:0;font-size:25px}.ccd-logo{font-size:32px;font-weight:900;font-style:italic;white-space:nowrap;letter-spacing:-2px;line-height:1}.ccd-logo .green{color:var(--green)}.ccd-logo small{display:block;font-size:11px;letter-spacing:.15px;font-style:normal;text-align:center;margin-top:4px}.ccd-search{display:flex;border:2px solid var(--green);border-radius:40px;overflow:hidden;flex:1;min-width:200px;max-width:760px;margin:auto;height:46px}.ccd-search input{border:0;outline:0;min-width:80px;padding:0 14px;flex:1;width:50%}.ccd-search select{border:0;border-left:1px solid var(--line);max-width:225px;background:#fff;padding:0 8px}.ccd-search button{border:0;background:var(--green);color:#fff;padding:0 20px;font-size:21px}.ccd-actions{display:flex;align-items:center;gap:18px;white-space:nowrap}.ccd-actions a{font-weight:700;font-size:13px}.ccd-actions .icon{font-size:22px;display:block;text-align:center}.ccd-cats{display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:auto;white-space:nowrap;padding:15px 26px;border-bottom:1px solid var(--line);font-size:13px;font-weight:700}.ccd-cats a:hover,.ccd-actions a:hover{color:var(--green)}.ccd-cats .symbol{font-size:22px;margin-right:8px}.ccd-main{padding-top:20px}.ccd-crumbs{font-size:13px;text-decoration:underline;margin-bottom:12px}.ccd-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.ccd-title-row h1{font-size:40px;letter-spacing:-1.4px;line-height:1.1;margin:0 0 5px}.ccd-count{color:#737986;font-weight:700}.ccd-subtitle{font-size:18px;margin:0 0 18px}.ccd-filters{display:flex;gap:8px;overflow:auto;padding-bottom:22px;white-space:nowrap}.ccd-pill{border:0;border-radius:25px;background:#eff0f2;padding:10px 18px;font-size:13px;font-weight:700}.ccd-pill.active,.ccd-pill:hover{background:var(--green);color:#fff}.ccd-featured{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:2px 0 18px}.ccd-feature-card{display:grid;grid-template-columns:1.35fr .9fr;min-height:225px;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 2px 5px #0001}.ccd-feature-card .ccd-card-photo{height:100%}.ccd-feature-info{padding:18px;display:flex;flex-direction:column;justify-content:space-between}.ccd-feature-info h2{font-size:25px;line-height:1.06;margin:0}.ccd-feature-info .ccd-price{font-size:27px}.ccd-exclusive-banner{background:linear-gradient(125deg,#003a15,#005b19 75%,#16b600);color:white;border-radius:12px;padding:24px 26px;display:flex;flex-direction:column;justify-content:space-between;min-height:220px}.ccd-exclusive-banner h2{font-size:29px;line-height:1.1;margin:10px 0 0}.ccd-exclusive-banner p{font-size:20px;font-weight:700;margin:0 0 15px}.ccd-exclusive-banner a,.ccd-join-banner a{display:inline-block;background:#fff;color:#063b0c;border-radius:9px;padding:10px 18px;font-weight:800;width:max-content}.ccd-section-title{display:flex;justify-content:space-between;align-items:center;margin:16px 0 14px}.ccd-section-title h2{font-size:32px;letter-spacing:-1px;margin:0}.ccd-section-title a{color:var(--green);font-weight:800}.ccd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ccd-card{border:1px solid #e1e4e8;border-radius:13px;overflow:hidden;position:relative;box-shadow:0 3px 5px #00000012;min-width:0}.ccd-card-photo{display:block;height:175px;position:relative;background:#edf1ed;overflow:hidden}.ccd-card-photo img{width:100%;height:100%;object-fit:cover;display:block}.ccd-no-photo{display:flex;height:100%;align-items:center;justify-content:center;font-size:24px;font-weight:800;color:#65836a}.ccd-badge{position:absolute;left:13px;top:12px;transform:rotate(-5deg);background:#08a10c;color:white;border-radius:8px;padding:5px 14px;font-weight:900;font-size:20px;box-shadow:0 3px 5px #0003}.ccd-heart{position:absolute;top:10px;right:12px;border:0;background:#0005;color:#fff;font-size:33px;line-height:1;border-radius:50%;padding:0 5px}.ccd-heart.saved{color:#ff596b}.ccd-card-body{padding:9px 15px 12px}.ccd-card-title{font-weight:850;font-size:18px;line-height:1.1;display:block;min-height:21px}.ccd-merchant{font-size:13px;margin:5px 0;color:#343844}.ccd-exclusive-label{color:var(--green);font-weight:800;font-size:12px}.ccd-card-bottom{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-top:8px}.ccd-price{color:var(--green);font-weight:900;font-size:25px;white-space:nowrap}.ccd-price del{font-size:16px;color:#747985;margin-left:5px}.ccd-btn{display:inline-block;background:linear-gradient(#15a313,#006b00);color:#fff;padding:9px 19px;border:0;border-radius:8px;font-weight:800;font-size:13px;text-align:center}.ccd-join-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f0f7ef;border-radius:15px;padding:23px 28px;margin:46px 0 30px}.ccd-join-banner h2{font-size:26px;margin:0}.ccd-join-banner h2 span{color:var(--green)}.ccd-join-banner p{margin:4px 0}.ccd-join-banner a{background:var(--green);color:#fff}.ccd-detail{display:grid;grid-template-columns:1.15fr 1fr;gap:35px;margin:25px 0 60px}.ccd-detail img{width:100%;height:auto;border-radius:14px}.ccd-detail h1{font-size:38px;line-height:1.1}.ccd-detail .ccd-price{font-size:38px}.ccd-claim{margin:20px 0}.ccd-claim-msg{font-weight:700;color:var(--green);padding-top:12px}.ccd-footer{border-top:1px solid var(--line);padding:25px 0;color:#6b7280;margin-top:30px}.ccd-empty{background:#f6f8f6;padding:35px;border-radius:12px}.ccd-mobile-toggle{display:none}.ccd-card-photo:focus-visible,.ccd-btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #72bf70;outline-offset:2px}@media(max-width:1150px){.ccd-topbar{flex-wrap:wrap}.ccd-search{order:3;max-width:none;flex-basis:100%}.ccd-actions{margin-left:auto}.ccd-featured{grid-template-columns:1fr 1fr}.ccd-feature-card{grid-template-columns:1fr}.ccd-feature-card .ccd-card-photo{height:155px}.ccd-grid{gap:13px}.ccd-card-photo{height:150px}}@media(max-width:760px){.ccd-container{padding:0 14px}.ccd-topbar{padding:12px 14px;gap:10px}.ccd-logo{font-size:26px}.ccd-logo small{font-size:9px}.ccd-actions a:not(.ccd-account){display:none}.ccd-search select{max-width:120px;font-size:11px}.ccd-cats{padding:11px 14px}.ccd-title-row h1{font-size:29px}.ccd-subtitle{font-size:15px}.ccd-featured{grid-template-columns:1fr}.ccd-feature-card{grid-template-columns:1fr 1fr;min-height:185px}.ccd-feature-card .ccd-card-photo{height:100%}.ccd-feature-info h2{font-size:20px}.ccd-exclusive-banner{min-height:170px}.ccd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ccd-card-photo{height:135px}.ccd-card-title{font-size:15px}.ccd-card-body{padding:8px}.ccd-price{font-size:20px}.ccd-price del{font-size:12px}.ccd-btn{padding:8px 9px;font-size:12px}.ccd-badge{font-size:14px;padding:4px 8px}.ccd-section-title h2{font-size:26px}.ccd-join-banner{flex-wrap:wrap}.ccd-detail{grid-template-columns:1fr}.ccd-count{font-size:12px}}@media(max-width:420px){.ccd-grid{grid-template-columns:1fr}.ccd-card-photo{height:190px}.ccd-feature-card{grid-template-columns:1fr}.ccd-feature-card .ccd-card-photo{height:190px}.ccd-search input{font-size:12px}.ccd-card-title{font-size:18px}}

/* v0.2 design fidelity and responsive refinements */
.ccd-container{max-width:1700px;padding-left:26px;padding-right:26px}
.ccd-topbar{padding:14px 26px;gap:22px}
.ccd-cats{display:flex;overflow-x:auto;scrollbar-width:none;gap:18px;padding:13px 26px}
.ccd-cats::-webkit-scrollbar,.ccd-filters::-webkit-scrollbar{display:none}
.ccd-filters{scrollbar-width:none;overflow-x:auto;gap:8px;padding-bottom:24px}
.ccd-filters .ccd-pill{flex-shrink:0}
.ccd-cats a{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
.ccd-cats .symbol{margin-right:2px;color:#0b111e}
.ccd-cats a:first-child .symbol{color:var(--green)}
.ccd-logo{font-size:33px}
.ccd-main{padding-top:14px}
.ccd-featured{grid-template-columns:minmax(0,1.92fr) minmax(320px,.95fr);gap:16px}
.ccd-feature-card{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr);min-height:205px}
.ccd-feature-card .ccd-card-photo{min-height:205px}
.ccd-feature-info{padding:16px}
.ccd-feature-info h2{font-size:25px}
.ccd-exclusive-banner{min-height:205px}
.ccd-card-photo{height:185px}
.ccd-card-body{padding:10px 15px 13px}
.ccd-card-title{font-size:18px}
.ccd-card-bottom{margin-top:10px}
.ccd-demo-notice{background:#fff9e8;border:1px solid #e8cf83;color:#543d00;border-radius:8px;padding:10px 15px;margin:0 0 14px;font-size:13px;font-weight:700}
.ccd-demo-feature-photo{position:relative;min-height:205px;overflow:hidden}
.ccd-demo-feature-photo img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}
.ccd-demo-tag{position:absolute;right:8px;bottom:8px;background:#fff;color:#222;border-radius:4px;padding:3px 7px;font-size:11px;font-weight:900;letter-spacing:.06em}
.ccd-demo-button{background:#737b83;cursor:default}
.ccd-cart{font-size:20px;cursor:default}
@media(max-width:1150px){.ccd-featured{grid-template-columns:1fr 1fr}.ccd-feature-card{grid-template-columns:1fr}.ccd-demo-feature-photo{min-height:160px}.ccd-feature-card .ccd-card-photo{min-height:160px}.ccd-feature-info{min-height:165px}}
@media(max-width:760px){.ccd-container{padding-left:14px;padding-right:14px}.ccd-featured{grid-template-columns:1fr}.ccd-feature-card{grid-template-columns:1fr 1fr}.ccd-demo-feature-photo{min-height:180px}.ccd-feature-info{min-height:180px}.ccd-cart{display:none}}
@media(max-width:420px){.ccd-feature-card{grid-template-columns:1fr}.ccd-demo-feature-photo{min-height:195px}.ccd-feature-info{min-height:160px}}

/* v0.2.1 approved-layout visual refinements */
body{font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
.ccd-topbar{min-height:76px;padding-top:10px;padding-bottom:10px}
.ccd-logo{font-weight:900;letter-spacing:-1.6px}
.ccd-logo small{font-weight:800;letter-spacing:.05px}
.ccd-svg-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.ccd-cats{gap:14px;font-size:13px;font-weight:600}
.ccd-cats .symbol{display:inline-flex;align-items:center}
.ccd-cats .symbol svg{stroke-width:1.85}
.ccd-actions a{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:650}
.ccd-actions .ccd-account{flex-direction:row;gap:5px}
.ccd-actions .icon{line-height:1}
.ccd-cart{display:inline-flex;align-items:center}
.ccd-menu-btn{display:inline-flex;align-items:center;justify-content:center}
.ccd-main{padding-top:16px}
.ccd-title-row h1{font-size:39px;letter-spacing:-1.1px}
.ccd-feature-info{gap:12px;padding:16px 18px}
.ccd-feature-info h2{font-size:24px;line-height:1.1;font-weight:800}
.ccd-feature-info p{margin:8px 0;font-size:14px}
.ccd-feature-card{grid-template-columns:minmax(0,1.12fr) minmax(0,.72fr)}
.ccd-exclusive-banner{position:relative;overflow:hidden;background:linear-gradient(125deg,#003814 0%,#005e17 70%,#078600 100%)}
.ccd-exclusive-banner:after{content:"";position:absolute;width:180px;height:180px;border:17px solid #34d115;border-radius:50%;right:-115px;bottom:-105px;opacity:.85;pointer-events:none}
.ccd-exclusive-banner strong{display:inline-flex;align-items:center;gap:8px}
.ccd-exclusive-banner a{position:relative;z-index:1}
.ccd-card{display:flex;flex-direction:column}
.ccd-card-photo{height:195px;flex-shrink:0}
.ccd-card-body{display:flex;flex-direction:column;flex:1;padding:12px 16px 15px;min-height:139px}
.ccd-card-title{font-size:17px;font-weight:800;line-height:1.18}
.ccd-merchant{margin:6px 0;font-size:13px}
.ccd-card-bottom{margin-top:auto;padding-top:12px;align-items:center}
.ccd-price{font-size:26px}
.ccd-btn{min-width:112px;padding:9px 15px}
.ccd-demo-notice{border:0;background:none;color:#69717b;font-size:11px;font-weight:500;padding:0;margin:-8px 0 10px;text-align:right}
.ccd-demo-card .ccd-card-photo img{object-position:center}
.ccd-join-banner{margin-top:48px}
.ccd-join-icon{color:var(--green)}
@media(max-width:1150px){.ccd-feature-card{grid-template-columns:1fr}.ccd-card-photo{height:170px}}
@media(max-width:760px){.ccd-feature-card{grid-template-columns:1fr 1fr}.ccd-card-photo{height:155px}.ccd-card-body{min-height:145px}.ccd-btn{min-width:0}}
@media(max-width:420px){.ccd-feature-card{grid-template-columns:1fr}.ccd-card-photo{height:190px}}

/* v0.2.2: independent accessible left navigation drawer */
body.ccd-drawer-open{overflow:hidden}
.ccd-drawer-backdrop[hidden]{display:none!important}
.ccd-drawer-backdrop{position:fixed;inset:0;background:rgba(8,13,29,.52);z-index:9997}
.ccd-drawer{position:fixed;top:0;left:0;bottom:0;width:min(360px,90vw);background:#fff;z-index:9998;transform:translateX(-105%);transition:transform .25s ease;overflow-y:auto;box-shadow:6px 0 25px #0002;visibility:hidden}
.ccd-drawer.is-open{transform:translateX(0);visibility:visible}
.ccd-drawer-head{position:sticky;top:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:19px 22px;border-bottom:1px solid var(--line);z-index:1}
.ccd-drawer-head strong{font-size:25px;font-style:italic;letter-spacing:-1px}.ccd-drawer-head strong span{color:var(--green)}
.ccd-drawer-close{border:0;background:#f1f2f3;border-radius:50%;font-size:28px;line-height:1;width:38px;height:38px}
.ccd-drawer nav{display:flex;flex-direction:column;padding:10px 0 25px}
.ccd-drawer nav a{display:flex;align-items:center;gap:13px;padding:12px 24px;font-size:15px;font-weight:650;min-height:44px}
.ccd-drawer nav a:hover,.ccd-drawer nav a:focus-visible{background:#edf7ed;color:var(--green)}
.ccd-drawer nav a svg{flex:none;color:var(--green)}
.ccd-drawer-section{padding:19px 24px 7px;margin-top:8px;border-top:1px solid var(--line);font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:800;color:#69717a}
@media(max-width:760px){.ccd-cats{display:none}}
@media(prefers-reduced-motion:reduce){.ccd-drawer{transition:none}}

/* v0.2.3: fixed, compact tablet/mobile header with collapsible search */
.ccd-mobile-search-toggle{display:none}
@media(max-width:1024px){
 :root{--ccd-fixed-header-height:60px}
 body{padding-top:var(--ccd-fixed-header-height)}
 body.admin-bar{padding-top:calc(var(--ccd-fixed-header-height) + 32px)}
 .ccd-site-header{position:fixed;top:0;left:0;right:0;z-index:9900;background:#fff;box-shadow:0 1px 7px rgba(8,13,29,.10)}
 .admin-bar .ccd-site-header{top:32px}
 .ccd-topbar{position:relative;display:flex;flex-wrap:nowrap;align-items:center;min-height:60px;height:60px;padding:0 18px;gap:14px}
 .ccd-logo{font-size:27px;letter-spacing:-1.4px;margin-right:auto}
 .ccd-logo small{display:none}
 .ccd-menu-btn{flex-shrink:0;padding:5px}
 .ccd-cats{display:none!important}
 .ccd-mobile-search-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:7px;order:2;flex-shrink:0}
 .ccd-actions{order:3;display:flex;align-items:center;gap:0;margin:0}
 .ccd-actions a:not(.ccd-account),.ccd-actions .ccd-cart{display:none!important}
 .ccd-actions .ccd-account{display:inline-flex;align-items:center;padding:6px;gap:0;font-size:0}
 .ccd-actions .ccd-account svg{width:22px;height:22px}
 .ccd-search{display:none;position:absolute;top:100%;left:0;right:0;max-width:none;width:100%;height:auto;min-height:54px;margin:0;padding:7px 14px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:#fff;box-shadow:0 5px 12px #0002;order:4;z-index:2;flex-basis:auto}
 .ccd-search.is-open{display:flex}
 .ccd-search input{width:auto;min-width:0;flex:1}
 .ccd-search select{max-width:180px}
 .ccd-search button{border-radius:22px;padding:0 15px}
 .ccd-drawer{z-index:10002}
 .ccd-drawer-backdrop{z-index:10001}
}
@media(max-width:767px){
 :root{--ccd-fixed-header-height:56px}
 .ccd-topbar{height:56px;min-height:56px;padding:0 12px;gap:8px}
 .ccd-logo{font-size:23px;letter-spacing:-1.2px}
 .ccd-mobile-search-toggle{padding:5px}
 .ccd-search{flex-wrap:wrap;padding:8px 10px;gap:5px}
 .ccd-search input{min-height:36px;flex-basis:calc(100% - 55px)}
 .ccd-search select{min-height:36px;max-width:none;flex:1;border-left:0}
 .ccd-search button{min-height:36px}
}
@media(max-width:782px){body.admin-bar{padding-top:calc(var(--ccd-fixed-header-height) + 46px)}.admin-bar .ccd-site-header{top:46px}}
@media(max-width:600px){body.admin-bar{padding-top:var(--ccd-fixed-header-height)}.admin-bar .ccd-site-header{top:0}}
