/* =========================================================
   Coffee Corner — main styles (RTL, Arabic)
   ========================================================= */
:root {
	--cc-brown: #6F452C;
	--cc-brown-dark: #4E2F1D;
	--cc-ink: #2E1F16;
	--cc-text: #5B4B41;
	--cc-cream: #F3EBE2;
	--cc-cream-2: #EBE1D7;
	--cc-paper: #FAF6F1;
	--cc-line: #E6D9CB;
	--cc-caramel: #C8925A;
	--cc-sale: #B5462F;
	--cc-radius: 18px;
	--cc-shadow: 0 10px 30px -18px rgba(78, 47, 29, .45);
}

body { background: var(--cc-paper); }
::selection { background: var(--cc-brown); color: #fff; }

/* ---------- Top bar ---------- */
.cc-topbar { background: var(--cc-brown-dark); color: #F5ECE2; font-size: 13px; font-weight: 600; }
.cc-topbar__inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
@media (max-width: 689px) {
	.cc-topbar__inner { gap: 6px 14px; font-size: 12px; padding: 7px 12px; }
	.cc-topbar__inner span:nth-child(3) { display: none; }
}

/* ---------- Header ---------- */
#header { border-bottom: 1px solid var(--cc-line); }
#header [data-row="middle"] { background: var(--cc-paper) !important; }
.site-logo-container img { max-height: 64px !important; width: auto; }
@media (max-width: 999px) { .site-logo-container img { max-height: 48px !important; } }
.ct-header .menu > li > a { font-weight: 700; color: var(--cc-ink); }
.ct-header .menu > li > a:hover,
.ct-header .menu > li.current-menu-item > a { color: var(--cc-brown); }

/* ---------- Buttons ---------- */
.wp-element-button, .button, button[type="submit"], .ct-button,
.wc-block-components-button, .checkout-button, #place_order {
	border-radius: 12px !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--cc-brown); border: 2px solid var(--cc-brown);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--cc-brown); color: #fff; }

/* ---------- Home: generic ---------- */
.home .site-main, .home #main { padding-top: 0; }
.cc-section { max-width: 1240px; margin: 0 auto 64px !important; padding: 0 16px; }
.cc-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--cc-brown); background: var(--cc-cream-2); padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.cc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cc-section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--cc-ink); position: relative; padding-inline-start: 14px; }
.cc-section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 4px; background: var(--cc-caramel); }
.cc-section-head a { font-weight: 700; color: var(--cc-brown); white-space: nowrap; border-bottom: 2px solid var(--cc-caramel); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.cc-hero {
	background:
		radial-gradient(circle at 15% 30%, rgba(200,146,90,.18), transparent 45%),
		linear-gradient(135deg, var(--cc-cream) 0%, var(--cc-cream-2) 100%);
	padding: clamp(36px, 6vw, 80px) 16px !important;
	margin-bottom: 48px !important;
	border-bottom: 1px solid var(--cc-line);
	overflow: hidden;
}
.cc-hero__cols { gap: 32px !important; margin-bottom: 0 !important; }
.cc-hero__title { font-size: clamp(30px, 4.6vw, 54px) !important; line-height: 1.3 !important; color: var(--cc-ink); margin: 0 0 18px; }
.cc-hero__title > span:not(.cc-word) { color: var(--cc-brown); position: relative; white-space: nowrap; }
.cc-hero__title > span:not(.cc-word)::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 10px; background: rgba(200,146,90,.35); z-index: -1; border-radius: 4px; }
.cc-hero__text { font-size: clamp(16px, 1.6vw, 19px); color: var(--cc-text); max-width: 560px; margin-bottom: 26px; }
.cc-hero__btns .wp-block-button__link { padding: 14px 30px; font-size: 16px; }
.cc-hero__art figure { margin: 0 auto; max-width: 420px; aspect-ratio: 1; border-radius: 50%; background: var(--cc-paper); display: grid; place-items: center; box-shadow: var(--cc-shadow), 0 0 0 14px rgba(255,255,255,.45); }
.cc-hero__art img { width: 68%; height: auto; }
@media (max-width: 781px) {
	.cc-hero__art { order: -1; }
	.cc-hero__art figure { max-width: 220px; }
	.cc-hero { text-align: center; }
	.cc-hero__text { margin-inline: auto; }
	.cc-hero__btns { justify-content: center; }
}

/* ---------- Category tiles ---------- */
.cc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cc-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 20px 26px; background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); color: var(--cc-ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cc-cat:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); border-color: var(--cc-caramel); color: var(--cc-ink); }
.cc-cat__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--cc-cream); color: var(--cc-brown); display: grid; place-items: center; margin-bottom: 10px; transition: background .25s, color .25s; }
.cc-cat:hover .cc-cat__icon { background: var(--cc-brown); color: var(--cc-cream); }
.cc-cat__icon svg { width: 54px; height: 54px; }
.cc-cat strong { font-size: 20px; }
.cc-cat small { color: var(--cc-text); font-size: 14px; }
.cc-cat em { font-style: normal; font-weight: 700; color: var(--cc-brown); font-size: 14px; margin-top: 8px; }
@media (max-width: 689px) {
	.cc-cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.cc-cat { padding: 18px 8px; }
	.cc-cat__icon { width: 64px; height: 64px; }
	.cc-cat__icon svg { width: 36px; height: 36px; }
	.cc-cat strong { font-size: 14px; }
	.cc-cat small, .cc-cat em { display: none; }
}

/* ---------- Promo banner ---------- */
.cc-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(120deg, var(--cc-brown-dark), var(--cc-brown)); color: var(--cc-cream); border-radius: 24px; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px) !important; margin-inline: auto !important; width: calc(100% - 32px); max-width: 1208px; }
.cc-banner h2 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin: 0 0 10px; }
.cc-banner p { color: #EBDCCB; margin: 0 0 22px; font-size: 17px; }
.cc-banner .cc-eyebrow { background: rgba(255,255,255,.12); color: #F5D9B8; }
.cc-banner__deco { font-size: clamp(120px, 18vw, 220px); font-weight: 800; line-height: 1; color: rgba(255,255,255,.08); user-select: none; }
.cc-btn-light { display: inline-block; background: var(--cc-cream); color: var(--cc-brown-dark); font-weight: 800; padding: 13px 30px; border-radius: 12px; transition: transform .2s, background .2s; }
.cc-btn-light:hover { background: #fff; color: var(--cc-brown-dark); transform: translateY(-2px); }
@media (max-width: 689px) { .cc-banner__deco { position: absolute; inset-inline-end: -10px; bottom: -20px; } }

/* ---------- Features ---------- */
.cc-features { background: var(--cc-cream); border-radius: 24px; padding: clamp(28px, 4vw, 48px) !important; width: calc(100% - 32px); max-width: 1208px; margin-inline: auto !important; }
.cc-features > h2 { text-align: center; margin: 0 0 28px; font-size: clamp(22px, 3vw, 30px); }
.cc-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cc-feature { background: #fff; border-radius: var(--cc-radius); padding: 24px 18px; text-align: center; }
.cc-feature span { font-size: 34px; display: block; margin-bottom: 8px; }
.cc-feature strong { display: block; color: var(--cc-ink); font-size: 17px; margin-bottom: 6px; }
.cc-feature p { margin: 0; font-size: 14px; color: var(--cc-text); line-height: 1.7; }
@media (max-width: 999px) { .cc-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cc-feature { padding: 18px 10px; } .cc-feature p { font-size: 13px; } }

/* ---------- Product cards ---------- */
ul.products { gap: 22px !important; }
ul.products li.product { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 10px 10px 16px !important; transition: box-shadow .25s, transform .25s; position: relative; text-align: center; }
ul.products li.product:hover { box-shadow: var(--cc-shadow); transform: translateY(-3px); }
ul.products li.product figure, ul.products li.product .ct-media-container { border-radius: 12px; overflow: hidden; background: var(--cc-cream); }
ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; font-weight: 700; color: var(--cc-ink); margin: 12px 4px 4px; }
ul.products li.product .price { font-size: 17px; font-weight: 800; color: var(--cc-brown) !important; }
ul.products li.product .price del { color: #9b8b80 !important; font-weight: 500; font-size: 14px; opacity: 1; margin-inline-end: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .ct-woo-card-actions,
ul.products li.product .button { width: 100%; justify-content: center; }
ul.products li.product .button { margin-top: 10px; }
ul.products li.product .entry-meta, ul.products li.product .ct-woo-card-extra { display: none; }
.onsale, .ct-woo-badge-sale { background: var(--cc-sale) !important; color: #fff !important; border-radius: 99px !important; font-weight: 800 !important; font-size: 13px !important; padding: 4px 12px !important; min-height: auto !important; line-height: 1.6 !important; top: 18px !important; inset-inline-start: 18px !important; }
@media (max-width: 689px) {
	ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
	ul.products li.product { padding: 6px 6px 12px !important; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
	ul.products li.product .button { font-size: 13px; padding-inline: 8px; }
	.onsale { top: 12px !important; inset-inline-start: 12px !important; font-size: 11px !important; padding: 2px 8px !important; }
}

/* ---------- Single product ---------- */
.single-product .product .price { font-size: 26px; font-weight: 800; color: var(--cc-brown); }
.single-product .product .price del { font-size: 18px; color: #9b8b80; font-weight: 500; }
.single-product .product .price ins { text-decoration: none; }
.cc-trust { list-style: none; margin: 22px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cc-trust li { display: flex; align-items: center; gap: 10px; background: var(--cc-cream); border-radius: 14px; padding: 12px; }
.cc-trust li > span { font-size: 24px; }
.cc-trust strong { display: block; font-size: 14px; color: var(--cc-ink); line-height: 1.4; }
.cc-trust small { font-size: 12px; color: var(--cc-text); }
.cc-order-wa { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #25D366; color: #128C4B; font-weight: 800; border-radius: 12px; padding: 11px; margin-bottom: 18px; }
.cc-order-wa:hover { background: #25D366; color: #fff; }
@media (max-width: 689px) { .cc-trust { grid-template-columns: 1fr; } }

/* ---------- Checkout ---------- */
.cc-hidden, #billing_country_field, #shipping_country_field { display: none !important; }
.woocommerce-checkout #payment { background: var(--cc-cream); border-radius: var(--cc-radius); }
.woocommerce-checkout h3 { font-size: 20px; }

/* ---------- Floating WhatsApp ---------- */
.cc-whatsapp { position: fixed; bottom: 22px; left: 22px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.cc-whatsapp:hover { color: #fff; transform: scale(1.08); }
.ct-back-to-top { left: auto !important; right: 22px !important; }

/* ---------- Footer ---------- */
.cc-footer { background: var(--cc-ink); color: #D9C9B8; padding: 56px 16px 28px; }
.cc-footer__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.cc-footer__brand img { width: 150px; height: auto; margin-bottom: 14px; }
.cc-footer__brand p { font-size: 14px; line-height: 1.9; max-width: 340px; }
.cc-footer h4 { color: #fff; font-size: 17px; margin: 0 0 16px; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; }
.cc-footer li { margin-bottom: 10px; }
.cc-footer a { color: #D9C9B8; font-size: 14px; }
.cc-footer a:hover { color: var(--cc-caramel); }
.cc-social { display: flex; gap: 10px; margin-top: 14px; }
.cc-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cc-social a:hover { background: var(--cc-caramel); border-color: var(--cc-caramel); color: #fff; }
.cc-pay { margin-top: 18px; display: inline-block; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 10px; font-size: 14px; }
#footer, .ct-footer { background: #24180F !important; }
#footer, #footer * { color: #A8978A; }
@media (max-width: 999px) { .cc-footer__grid { grid-template-columns: 1fr 1fr; } .cc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .cc-footer { padding-top: 40px; } .cc-footer__grid { gap: 26px 16px; } }

/* ---------- Contact cards ---------- */
.cc-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.cc-contact-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 22px 12px; color: var(--cc-ink); text-align: center; }
.cc-contact-card:hover { border-color: var(--cc-caramel); box-shadow: var(--cc-shadow); color: var(--cc-ink); }
.cc-contact-card span { font-size: 30px; }
.cc-contact-card small { color: var(--cc-text); }
@media (max-width: 600px) { .cc-contact-cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.wp-block-details { background: #fff; border: 1px solid var(--cc-line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.wp-block-details summary { font-weight: 700; color: var(--cc-ink); cursor: pointer; }
.wp-block-details[open] summary { color: var(--cc-brown); margin-bottom: 8px; }

/* header logo: image only */
.site-branding .site-title-container, .site-branding .site-title { display: none !important; }
.site-logo-container img { max-height: 76px !important; }
.site-logo-container { --logo-max-height: 76px !important; height: auto !important; }
@media (max-width: 999px) { .site-logo-container { --logo-max-height: 52px !important; } .site-logo-container img { max-height: 52px !important; } }
.home .ct-container-full { padding-top: 0 !important; }
.cc-footer__bottom { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: #A8978A; }
#footer [data-row] { display: none !important; }
ul.products li.product .added_to_cart { display: flex; width: 100%; justify-content: center; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--cc-cream); color: var(--cc-brown); font-weight: 800; border: 2px solid var(--cc-brown); animation: cc-pop .5s cubic-bezier(.34,1.56,.64,1); }
ul.products li.product .added_to_cart::before { content: "✓"; margin-inline-end: 6px; }
ul.products li.product .added_to_cart:hover { background: var(--cc-brown); color: #fff; }
