/*
Theme Name: Urna Child
Theme URI: https://urnawp.com/
Author: Thembay
Description: RepaRose child theme for Urna (Beauty skin)
Version: 1.3.3
Author URI: https://thembay.com/
Template: urna
Text Domain: urna-child
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
  --rr-rose: #A4535B;
  --rr-rose-dark: #8C444B;
  --rr-sage: #6B8E6B;
  --rr-cream: #FAF6F1;
  --rr-sand: #F1E7DD;
  --rr-gold: #C9A66B;
  --rr-ink: #2B2B2B;
  --rr-muted: #6F6A66;
  --rr-line: #ECE3DA;
  --rr-shell: #FFFDFB;
  --rr-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --rr-radius: 14px;
  --rr-shadow: 0 6px 28px rgba(43, 43, 43, .07);
  --rr-hair: rgba(201, 166, 107, .38);
  /* mobile header: the bar's height and the page offset below it come from one
     value, and every control in it is one square */
  --rr-mhead: 60px;
  --rr-mctl: 40px;
}

body { color: var(--rr-ink); }
a { color: var(--rr-ink); }
a:hover, a:focus { color: var(--rr-rose); }

/* =========================================================================
   2. Typography
   ========================================================================= */
h1, h2, h3, .h1, .h2, .h3,
.tbay-addon-title .title,
.elementor-widget-heading .elementor-heading-title,
.woocommerce div.product .product_title,
.page-title, .entry-title,
.tbay-addon-posts .entry-title a {
  font-family: var(--rr-serif);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--rr-ink);
}
.tbay-addon-title { margin-bottom: 26px; }
.tbay-addon-title .title { font-size: 40px; line-height: 1.15; text-transform: none; }
.tbay-addon-title .subtitle {
  display: block; margin-top: 8px;
  font-family: var(--tb-text-primary-font); font-size: 15px; color: var(--rr-muted);
}

/* =========================================================================
   3. Buttons
   ========================================================================= */
.btn, .button, .elementor-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.single_add_to_cart_button, .checkout-button, #place_order, .tbay-buy-now {
  border-radius: 40px !important;
  letter-spacing: .3px;
  text-transform: none;
  font-weight: 500;
}
.woocommerce a.button, .woocommerce button.button.alt, .single_add_to_cart_button,
.checkout-button, #place_order {
  background-color: var(--rr-rose) !important;
  color: #fff !important;
  border-color: var(--rr-rose) !important;
}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover {
  background-color: var(--rr-rose-dark) !important;
  border-color: var(--rr-rose-dark) !important;
}
.elementor-button { padding: 15px 34px; }

/* =========================================================================
   4. Header
   ========================================================================= */
.site-header .topbar { background: var(--rr-cream); border-bottom: 1px solid var(--rr-line); padding: 6px 0; }
.site-header .topbar .header-logo { padding: 6px 0; }
.site-header .header-main { background: #fff; box-shadow: 0 1px 0 var(--rr-line); }
.site-header .header-main .primary-menu > li > a { color: var(--rr-ink); font-weight: 500; }
.site-header .header-main .primary-menu > li > a:hover,
.site-header .header-main .primary-menu > li.current-menu-item > a { color: var(--rr-rose); }
.site-header .header-main .vertical-menu .category-inside-title { background: var(--rr-rose); color: #fff; border-radius: 8px 8px 0 0; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.top-contact .textwidget, .rr-announce { font-size: 13.5px; letter-spacing: .2px; color: var(--rr-ink); }
.rr-announce i { color: var(--rr-sage); margin-inline-end: 6px; }
.reparose-lang-switcher { display: inline-flex; align-items: center; }
.reparose-lang-switcher .trp-language-switcher { font-size: 13px; }
.reparose-lang-switcher .trp-language-switcher > div { background: transparent; border: 1px solid var(--rr-line); border-radius: 30px; padding: 2px 10px; }

/* =========================================================================
   5. Hero
   ========================================================================= */
.rr-hero .elementor-widget-image img {
  box-shadow: 0 18px 50px rgba(43, 43, 43, .14);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.rr-hero .elementor-button { min-width: 172px; text-align: center; }

/* =========================================================================
   6. Features strip
   ========================================================================= */
.rr-features .feature-box { text-align: center; padding: 6px 14px; }
.rr-features .feature-box .icon i,
.tbay-addon-features .feature-box i { color: var(--rr-rose); font-size: 34px; line-height: 1; }
.tbay-addon-features .feature-box .title,
.tbay-addon-features .feature-box h3 {
  font-family: var(--rr-serif); font-size: 19px; margin: 12px 0 6px; text-transform: none; letter-spacing: 0;
}
.tbay-addon-features .feature-box .description { color: var(--rr-muted); font-size: 14px; line-height: 1.7; }

/* =========================================================================
   7. Category tiles ("Shop by category")
   ========================================================================= */
.rr-categories .item-cat {
  background: #fff;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  margin: 0 8px 8px;
}
.rr-categories .item-cat:hover { box-shadow: var(--rr-shadow); transform: translateY(-3px); }
/* the beauty skin renders name + 80px thumb in a flex row; rebuild as an image card */
.rr-categories .tbay-addon-categories .content-img {
  display: flex; flex-direction: column-reverse; flex-wrap: nowrap;
  padding: 0; border-bottom: 0; position: static; align-items: stretch;
}
.rr-categories .tbay-addon-categories .content-img > a { display: block; width: 100%; line-height: 0; overflow: hidden; }
.rr-categories .tbay-addon-categories .content-img img {
  max-width: 100%; width: 100%; height: auto; display: block;
  aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease;
}
.rr-categories .item-cat:hover img { transform: scale(1.04); }
.rr-categories .tbay-addon-categories .content {
  position: static; padding: 15px 12px 17px; text-align: center; background: #fff; transform: none; width: 100%;
}
.rr-categories .tbay-addon-categories .cat-name {
  font-family: var(--rr-serif); font-size: 19px; font-weight: 600; color: var(--rr-ink);
  display: flex; align-items: center; justify-content: center; min-height: 2.5em; line-height: 1.25;
}
.rr-categories .item-cat:hover .cat-name { color: var(--rr-rose); }
.rr-categories .item-cat .item-menu { display: none; }
.rr-categories .slick-slide { height: auto; }

/* =========================================================================
   8. Product cards
   ========================================================================= */
.products .product .product-content,
.tbay-addon-products .product .product-content {
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s ease;
}
.products .product:hover .product-content { box-shadow: var(--rr-shadow); }
.products .product figure.image { margin: 0; background: #fff; }
.products .product figure.image img,
.products .product .product-image img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}
.products .product .caption { padding: 16px 16px 20px; text-align: center; }
.products .product .product-name,
.products .product .caption h3, .products .product .caption h2 {
  font-family: var(--tb-text-primary-font);
  font-size: 14.5px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; min-height: 44px;
}
.products .product .price { color: var(--rr-rose); font-weight: 600; font-size: 16px; }
.products .product .price del { color: var(--rr-muted); font-weight: 400; margin-inline-end: 6px; }

/* Badges — scope strictly to the badge spans, never the product <li> */
span.onsale > span, span.onsale .saled, span.onsale .featured, span.tbay-label {
  border-radius: 30px !important; font-size: 11px !important; letter-spacing: .6px;
  text-transform: uppercase; font-weight: 600; padding: 3px 12px !important; line-height: 18px !important;
}
span.onsale .featured { background: var(--rr-gold) !important; color: #fff !important; }
span.onsale .saled { background: var(--rr-rose) !important; color: #fff !important; }

/* Section helpers */
.rr-cream { background: var(--rr-cream); }
.rr-sand { background: var(--rr-sand); }
.rr-banners .tbay-addon-banner img { border-radius: var(--rr-radius); }
.rr-banners .tbay-addon-banner { position: relative; }
.rr-story img { border-radius: var(--rr-radius); }

/* =========================================================================
   9. Shop / archive / single product
   ========================================================================= */
.woocommerce .tbay-breadcrumb, .tbay-breadcrumb { background: var(--rr-cream) !important; }
.widget-title, .widget .widget-title { font-family: var(--rr-serif); font-size: 20px; }
.woocommerce div.product .summary .price { color: var(--rr-rose); font-weight: 600; }
.woocommerce-tabs .nav-tabs > li > a { font-family: var(--rr-serif); font-size: 18px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--rr-rose); border-color: var(--rr-rose); }
.woocommerce div.product .entry-summary h3 { font-size: 19px; margin-top: 22px; }
.woocommerce div.product .entry-summary ul { padding-inline-start: 18px; }
.woocommerce div.product .entry-summary li { margin-bottom: 6px; line-height: 1.7; }

/* =========================================================================
   10. Checkout / cart
   ========================================================================= */
.reparose-cod-note {
  display: flex; gap: 12px; align-items: center;
  background: var(--rr-cream); border: 1px solid var(--rr-line); border-radius: var(--rr-radius);
  padding: 14px 18px; margin: 0 0 18px; font-size: 14px;
}
.reparose-cod-note i { font-size: 22px; color: var(--rr-sage); }
.woocommerce-checkout #payment { background: var(--rr-cream); border-radius: var(--rr-radius); }

/* =========================================================================
   11. Footer
   ========================================================================= */
.tbay-customize-footer { background: var(--rr-cream); }
.tbay-customize-footer .tbay-addon-title { margin-bottom: 14px; }
.tbay-customize-footer .tbay-addon-title .title { font-size: 19px; }
.tbay-customize-footer .tbay-addon-custom-menu .menu li { margin-bottom: 9px; list-style: none; }
.tbay-customize-footer .tbay-addon-custom-menu .menu { padding: 0; }
.rr-footer-contact i { color: var(--rr-rose); width: 20px; display: inline-block; }
ul.rr-trust { list-style: none; padding: 0; margin: 0; }
ul.rr-trust li { margin-bottom: 8px; }
ul.rr-trust i { color: var(--rr-sage); margin-inline-end: 8px; }
.rr-footer-copy { border-top: 1px solid var(--rr-line); }
.rr-cta .tbay-addon-title .title, .rr-cta .tbay-addon-title .subtitle { color: #fff; }
.rr-cta .social a { color: #fff; }

/* =========================================================================
   12. Mobile
   ========================================================================= */
@media (max-width: 991px) {
  .tbay-addon-title .title { font-size: 30px; }
}
@media (max-width: 767px) {
  .tbay-addon-title .title { font-size: 26px; }
  .elementor-button { padding: 13px 26px; }
  .rr-categories .item-cat .cat-name { font-size: 17px; }
  .products .product .caption { padding: 12px 10px 16px; }
  .products .product .product-name { min-height: 40px; font-size: 13.5px; }
}

/* =========================================================================
   13. Arabic / RTL
   ========================================================================= */
body.rtl {
  --tb-text-primary-font: 'Cairo', 'Poppins', sans-serif;
  --tb-text-second-font: 'Cairo', sans-serif;
  --rr-serif: 'Cairo', sans-serif;
}
body.rtl,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl .btn, body.rtl .button, body.rtl .elementor-button,
body.rtl .tbay-addon-title .title,
body.rtl .elementor-heading-title,
body.rtl .cat-name, body.rtl .product-name {
  font-family: 'Cairo', 'Poppins', sans-serif;
  letter-spacing: 0;
}
body.rtl .tbay-addon-title .title { font-weight: 700; font-size: 34px; }
body.rtl .elementor-heading-title { line-height: 1.4; }
body.rtl .rr-hero h1.elementor-heading-title { font-size: 56px; }
@media (max-width: 767px) {
  body.rtl .rr-hero h1.elementor-heading-title { font-size: 34px; }
  body.rtl .tbay-addon-title .title { font-size: 24px; }
}

/* Banner text legibility over product photography */
.rr-banners .elementor-heading-title,
.rr-banners .elementor-widget-text-editor { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.rr-banners .elementor-inner-section > .elementor-container { border-radius: var(--rr-radius); }

/* Footer heading + social consistency */
.tbay-customize-footer .tbay-addon-title .title,
.tbay-customize-footer .tbay-addon-custom-menu .tbay-addon-title .title,
.tbay-customize-footer h4 { font-size: 19px !important; margin-bottom: 4px; }
.tbay-customize-footer .tbay-addon-social .social { display: flex; gap: 14px; padding: 0; margin: 6px 0 0; }
.tbay-customize-footer .tbay-addon-social .social li { list-style: none; }
.tbay-customize-footer .tbay-addon-social .social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rr-line);
  display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--rr-ink);
}
.tbay-customize-footer .tbay-addon-social .social a:hover { background: var(--rr-rose); border-color: var(--rr-rose); color: #fff; }
.tbay-customize-footer .tbay-addon-social .social a svg { width: 15px; height: 15px; fill: currentColor; }
.rr-cta .tbay-addon-social .social { display: flex; gap: 16px; justify-content: flex-end; padding: 0; margin: 0; }
.rr-cta .tbay-addon-social .social li { list-style: none; }
.rr-cta .tbay-addon-social .social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; }
.rr-cta .tbay-addon-social .social a:hover { background: #fff; }
.rr-cta .tbay-addon-social .social a svg { width: 16px; height: 16px; fill: currentColor; }
.rr-cta .tbay-addon-social .social a:hover svg { fill: var(--rr-rose); }
@media (max-width: 767px) {
  .rr-cta .tbay-addon-social .social { justify-content: center; margin-top: 16px; }
}

/* WooCommerce hides the gallery until its own slider JS runs; the Urna layouts
   render their own markup, so make sure the image is always visible. */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--rr-radius); }
.woocommerce div.product .tbay-buy-now, .woocommerce div.product .buy-now { background: var(--rr-ink) !important; color: #fff !important; }
.woocommerce div.product .tbay-buy-now:hover, .woocommerce div.product .buy-now:hover { background: var(--rr-rose-dark) !important; }

/* WooCommerce notices: keep the inline action link legible */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--rr-cream); border-top: 3px solid var(--rr-sage); color: var(--rr-ink);
}
.woocommerce-message .button, .woocommerce-info .button {
  background: transparent !important; color: var(--rr-rose) !important;
  border: 0 !important; text-decoration: underline; padding: 0 !important; font-weight: 500;
}
.woocommerce-error { border-top-color: var(--rr-rose); }

/* The footer contact block is site chrome, so in Arabic every line of it starts
   at the right, icon first. This used to be unicode-bidi: plaintext, which
   re-bases each line from its own first strong character and therefore
   left-aligned the Latin phone and e-mail lines while the Arabic address line
   above them stayed right. Nothing is lost by isolating instead: the phone
   keeps its own direction through the dir="ltr" on its anchor, and a single
   Latin token like an e-mail address needs no help to read correctly. */
body.rtl .rr-footer-contact,
body.rtl .rr-footer-contact p { unicode-bidi: isolate; text-align: right; }

/* The customer's own address is the opposite case: it is user data that can be
   in either script, so each line should take the direction of its content. */
body.rtl .woocommerce-order-details address { unicode-bidi: plaintext; }

/* =========================================================================
   Contact form (Contact Form 7)
   ========================================================================= */
.rr-form-row { margin-bottom: 16px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--rr-line); border-radius: 10px;
  background: #fff; font-size: 15px; color: var(--rr-ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--rr-rose); outline: none; }
.wpcf7 textarea { min-height: 170px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--rr-rose); color: #fff; border: 0; border-radius: 40px;
  padding: 15px 40px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--rr-rose-dark); }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; border-width: 1px; margin: 18px 0 0; padding: 12px 16px; }

/* FAQ accordion */
.elementor-accordion .elementor-accordion-item { border-radius: 10px; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--rr-line) !important; }
.elementor-accordion .elementor-tab-title { font-family: var(--rr-serif); font-size: 19px; }
.elementor-accordion .elementor-tab-content { line-height: 1.8; border-top: 1px solid var(--rr-line); }
