/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme for Oriento Store
 Author:       Oriento
 Author URI:   https://oriento.store
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ============================================================
   Oriento Store – Design Harmony & Consistency Polish
   Adapted from ValidusHair design system (2026-02-07)
   Colors: Oriento Red #D60620 (was Validus Blue rgb(35,79,123))
   Date: 2026-03-19
   ============================================================ */

/* -------------------------------------------------------
   1. GLOBAL TRANSITIONS & SMOOTH INTERACTIONS
   ------------------------------------------------------- */

a,
button,
input[type="submit"],
.btn,
.button,
.product-image-link img,
.wd-action-btn > a,
.wd-nav > li > a {
  transition: all 0.25s ease;
}

/* -------------------------------------------------------
   2. PRODUCT CARDS – Grid Consistency
   ------------------------------------------------------- */

/* Subtle lift on hover */
.product-grid-item .product-wrapper {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 4px;
}
.product-grid-item .product-wrapper:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* Product image – subtle zoom on hover */
.product-grid-item .product-image-link img {
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.product-grid-item .product-image-link:hover img {
  transform: scale(1.03);
}

/* Consistent product title height – 2-line clamp */
.product-grid-item .wd-entities-title {
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Price area – consistent alignment */
.product-grid-item .price {
  min-height: 1.6em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

/* Product labels / badges – consistent border-radius */
.product-labels .product-label {
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------
   3. SHOP SIDEBAR – Widget Consistency
   ------------------------------------------------------- */

.sidebar-shop .widget {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sidebar-shop .widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Widget titles – Oriento Red accent */
.sidebar-shop .widget-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D60620;
}

/* -------------------------------------------------------
   4. NAVIGATION – Consistent Menu Spacing
   ------------------------------------------------------- */

.wd-nav-main > li {
  margin: 0;
}
.wd-nav-main > li > a {
  padding: 10px 16px;
  letter-spacing: 0.01em;
}

/* Active menu item – Oriento Red indicator */
.wd-nav-main > li.current-menu-item > a,
.wd-nav-main > li.current-menu-ancestor > a {
  position: relative;
}
.wd-nav-main > li.current-menu-item > a::after,
.wd-nav-main > li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: #D60620;
  border-radius: 1px;
}

/* Dropdown menu – smooth */
.wd-dropdown-menu {
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------
   5. BUTTONS – Unified Styling
   ------------------------------------------------------- */

.btn,
.button,
input[type="submit"],
.add_to_cart_button,
.single_add_to_cart_button {
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  border-radius: 4px;
}

/* Subtle press effect */
.btn:active,
.button:active,
.add_to_cart_button:active,
.single_add_to_cart_button:active {
  transform: scale(0.98);
}

/* -------------------------------------------------------
   6. SECTION SPACING – Homepage Consistency
   ------------------------------------------------------- */

.page-id-3050 .elementor-top-section {
  margin-bottom: 0;
}
.page-id-3050 .elementor-top-section + .elementor-top-section {
  margin-top: 0;
}

/* -------------------------------------------------------
   7. FOOTER – Consistent Spacing
   ------------------------------------------------------- */

.footer-container .info-box-wrapper {
  margin-bottom: 16px;
}
.footer-container .info-box-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-container .info-box-inner p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-container .elementor-column {
  padding-bottom: 20px;
}

.footer-container a {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-container a:hover {
  opacity: 0.85;
}

/* -------------------------------------------------------
   8. TYPOGRAPHY REFINEMENTS
   ------------------------------------------------------- */

.wd-cat .wd-entities-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.woocommerce-breadcrumb,
.breadcrumbs {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------
   9. SINGLE PRODUCT PAGE – Polish
   ------------------------------------------------------- */

.woocommerce-product-gallery img {
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.woocommerce-Tabs-panel,
.wd-tab-content-wrapper {
  line-height: 1.7;
}

.related.products > h2,
.up-sells > h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* -------------------------------------------------------
   10. MOBILE REFINEMENTS
   ------------------------------------------------------- */

@media (max-width: 768px) {
  .products.grid-columns-2 .product-grid-item {
    margin-bottom: 16px;
  }

  .wd-nav li a,
  .mobile-nav li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .product-grid-item .wd-entities-title {
    font-size: 13px;
    min-height: 2.6em;
  }

  .footer-container .elementor-column {
    padding-bottom: 24px;
    margin-bottom: 0;
  }

  .page-id-3050 .elementor-top-section {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .product-grid-item .wd-entities-title {
    font-size: 12px;
    min-height: 2.4em;
  }

  .sidebar-shop .widget-title {
    font-size: 13px;
  }
}

/* -------------------------------------------------------
   11. FOCUS & ACCESSIBILITY STATES
   ------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D60620;
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------------------------------------------------------
   12. MISC – Small Fixes
   ------------------------------------------------------- */

/* Star ratings – gold accent */
.star-rating span::before {
  color: rgb(195, 147, 91);
}

/* Sale badge – gold accent */
.onsale.product-label {
  background-color: rgb(195, 147, 91);
  color: #fff;
}

/* Image aspect ratio guard */
.product-image-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* -------------------------------------------------------
   13. FOOTER TRUST BAR
   ------------------------------------------------------- */

.footer-container .wd-infobox {
  text-align: center;
  padding: 0 10px;
}
.footer-container .wd-infobox .info-box-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
  line-height: 1.4;
}
.footer-container .wd-infobox .info-subtitle {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.footer-container .wd-infobox .info-box-inner p {
  font-size: 12px;
  line-height: 1.5;
  color: #525252;
  margin: 0;
}

/* -------------------------------------------------------
   14. FOOTER MENU COLUMNS
   ------------------------------------------------------- */

/* Column headings */
.footer-container .wd-extra-menu-list .wd-fontsize-m {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.footer-container .wd-extra-menu-list .wd-fontsize-m::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: rgb(195, 147, 91);
  border-radius: 1px;
}

/* Menu links */
.footer-container .wd-extra-menu-list li {
  margin-bottom: 8px;
}
.footer-container .wd-extra-menu-list li a {
  font-size: 13px;
  letter-spacing: 0.01em;
  opacity: 0.75;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 2px 0;
}
.footer-container .wd-extra-menu-list li a:hover {
  opacity: 1;
}
.footer-container .wd-extra-menu-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer-container .wd-extra-menu-list li a:hover::after {
  width: 100%;
}

/* -------------------------------------------------------
   15. COPYRIGHT BAR
   ------------------------------------------------------- */

.copyrights-wrapper {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.copyrights-wrapper small {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #525252;
}
.copyrights-wrapper img[alt="payments"] {
  max-height: 22px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.copyrights-wrapper img[alt="payments"]:hover {
  opacity: 1;
}

/* -------------------------------------------------------
   16. PROFESSIONAL POLISH
   ------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* Selection color – Oriento Red */
::selection {
  background: rgba(214, 6, 32, 0.15);
  color: inherit;
}

/* Scrollbar – Oriento Red */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: rgba(214, 6, 32, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 6, 32, 0.5);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------
   17. HEADER & MARQUEE
   ------------------------------------------------------- */

.wd-marquee .marquee-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.whb-sticky-shadow .whb-row {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* -------------------------------------------------------
   18. CART & CHECKOUT
   ------------------------------------------------------- */

.cart_totals .shop_table {
  border-collapse: collapse;
}
.cart_totals .shop_table td,
.cart_totals .shop_table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Checkout fields – Oriento Red focus */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #D60620;
  box-shadow: 0 0 0 3px rgba(214, 6, 32, 0.08);
  outline: none;
}

/* Place order button */
#place_order {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* -------------------------------------------------------
   19. PRODUCT PAGE – PREMIUM DETAILS
   ------------------------------------------------------- */

.product_meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #525252;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.product_meta a {
  color: #D60620;
  font-weight: 500;
}

.wc-tabs li a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

.summary .price {
  font-size: 22px;
  font-weight: 700;
}
.summary .price del {
  font-size: 16px;
  opacity: 0.5;
}
.summary .price ins {
  font-weight: 700;
  text-decoration: none;
}

/* -------------------------------------------------------
   20. WOOCOMMERCE NOTICES
   ------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 4px;
  font-size: 14px;
  padding: 14px 20px;
}

/* -------------------------------------------------------
   21. IMAGE LOADING
   ------------------------------------------------------- */

.product-image-link img,
.attachment-woocommerce_thumbnail {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* -------------------------------------------------------
   22. SOCIAL ICONS – FOOTER
   ------------------------------------------------------- */

.footer-container .wd-social-icons a {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}
.footer-container .wd-social-icons a:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* -------------------------------------------------------
   23. MOBILE – PROFESSIONAL
   ------------------------------------------------------- */

@media (max-width: 768px) {
  .footer-container .wd-extra-menu-list .wd-fontsize-m::after {
    display: none;
  }

  .wd-marquee .marquee-text {
    font-size: 11px;
  }

  .woocommerce-checkout .form-row {
    margin-bottom: 12px;
  }
}

/* -------------------------------------------------------
   24. RTL SUPPORT (Arabic)
   ------------------------------------------------------- */

html[dir="rtl"] .footer-container .wd-extra-menu-list .wd-fontsize-m::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .wd-nav-main > li.current-menu-item > a::after,
html[dir="rtl"] .wd-nav-main > li.current-menu-ancestor > a::after {
  left: 16px;
  right: 16px;
}
