﻿/*
 * WCFM Custom Styles — Used Hotel Eka
 * Blue → Green (#356a58) + Modern Chat Layout
 * Covers entire site via CSS variable overrides
 */

/* ============================================
   PART 0: Global Blue → Green via CSS Variables
   ============================================ */

:root {
  --wf-main-rgb: 53, 106, 88 !important;
  --wf-secondary-color: #356a58 !important;
}

/* Also override any hardcoded blue links/buttons site-wide */
a {
  color: #356a58;
}

a:hover,
a:focus {
  color: #2d5c4e;
}

/* WooCommerce buttons */
.button,
button[type="submit"],
input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #356a58 !important;
  border-color: #356a58 !important;
  color: #fff !important;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #2d5c4e !important;
  border-color: #2d5c4e !important;
  color: #fff !important;
}

/* Sale badge */
.onsale {
  background-color: #356a58 !important;
}

/* Product price */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #356a58 !important;
}

/* Star ratings */
 .star-rating span,
.woocommerce .star-rating span {
  color: #356a58 !important;
}

/* Breadcrumb */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
  color: #356a58 !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  color: #356a58 !important;
  border-color: #356a58 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: #356a58 !important;
  color: #fff !important;
}

/* Tab active state */
.woocommerce div.product divwoocommerce-tabs ul.tabs li.active {
  border-bottom-color: #356a58 !important;
}

.woocommerce div.product divwoocommerce-tabs ul.tabs li.active a {
  color: #356a58 !important;
}

/* ============================================
   PART 1: WCFM Blue → Green Accent Overrides
   ============================================ */

/* Page heading text */
.wcfm-page-heading-text,
#wcfm-main-contentainer .wcfm-page-heading-text {
  color: #356a58 !important;
}

/* Active menu item background */
#wcfm_menu .wcfm_menu_items a.active {
  background: #356a58 !important;
}

/* Menu hover text color */
#wcfm_menu .wcfm_menu_items a:hover span {
  color: #356a58 !important;
}

/* Active menu hover text stays white */
#wcfm_menu .wcfm_menu_items a.active:hover span {
  color: #fff !important;
}

/* Menu item hover arrow */
#wcfm_menu .wcfm_menu_items a.wcfm_menu_item:hover:after {
  border-right-color: #356a58 !important;
}

/* Header panel active icon */
#wcfm-main-contentainer .wcfm-page-headig a.active .wcfmfa {
  color: #356a58 !important;
}

/* Enquiry badge background */
.wcfm_header_panel .unread_notification_count.enquiry_count {
  background-color: #356a58 !important;
}

/* Enquiry notification ring */
.wcfm_header_panel a.wcfm_header_panel_enquiry .notification-ring {
  border-color: #356a58 !important;
}

/* Menu toggler icons */
#wcfm-main-contentainer .wcfm_menu_toggler,
#wcfm-main-contentainer .wcfm_responsive_menu_toggler {
  color: #356a58 !important;
}

/* Screen manager icon */
#wcfm_screen_manager_dummy,
#wcfm-main-contentainer .wcfm_screen_manager {
  color: #356a58 !important;
}

/* Button hover backgrounds */
#wcfm-main-contentainer input.wcfm_submit_button:hover,
#wcfm-main-contentainer button.wcfm_submit_button:hover,
#wcfm-main-contentainer a.wcfm_submit_button:hover,
#wcfm-main-contentainer .wcfm_add_category_bt:hover,
#wcfm-main-contentainer .wcfm_add_attribute:hover,
#wcfm-main-contentainer .wcfm_add_attribute_term:hover,
#wcfm-main-contentainer input.upload_button:hover,
#wcfm-main-contentainer input.remove_button:hover,
.multi_input_block_manupulate:hover,
#wcfm-main-contentainer .dataTables_wrapper .dt-buttons .dt-button:hover,
#wcfm_vendor_approval_response_button:hover,
#wcfm_bulk_edit_button:hover,
#wcfm_enquiry_submit_button:hover {
  background: #356a58 !important;
}

/* Add new / import-export hover */
#wcfm-main-contentainer a.add_new_wcfm_ele_dashboard:hover,
#wcfm-main-contentainer a.wcfm_import_export:hover {
  background-color: #356a58 !important;
  color: #fff !important;
}

/* Input focus borders */
#wcfm-main-contentainer input[type="text"]:focus,
#wcfm-main-contentainer select:focus,
#wcfm-main-contentainer input[type="number"]:focus,
#wcfm-main-contentainer input[type="time"]:focus,
#wcfm-main-contentainer input[type="search"]:focus,
#wcfm-main-contentainer input[type="password"]:focus,
#wcfm-main-contentainer textarea:focus {
  border-color: #4a8a70 !important;
}

/* Checkbox checked color */
input.wcfm-checkbox:checked:before {
  color: #356a58 !important;
}

/* Table header text */
#wcfm-main-contentainer table thead td,
#wcfm-main-contentainer table thead th,
#wcfm-main-contentainer table tfoot td,
#wcfm-main-contentainer table tfoot th {
  color: #356a58 !important;
}

/* Mobile store name link */
.wcfm-store-name-heading-text a {
  color: #356a58 !important;
}

/* Button bottom border accent */
#wcfm-main-contentainer input.wcfm_submit_button,
#wcfm-main-contentainer button.wcfm_submit_button,
#wcfm-main-contentainer a.wcfm_submit_button,
#wcfm-main-contentainer .wcfm_add_category_bt,
#wcfm-main-contentainer .wcfm_add_attribute,
#wcfm-main-contentainer .wcfm_add_attribute_term,
#wcfm-main-contentainer input.upload_button,
#wcfm-main-contentainer input.remove_button,
#wcfm-main-contentainer .dataTables_wrapper .dt-buttons .dt-button,
#wcfm_vendor_approval_response_button,
#wcfm_bulk_edit_button,
#wcfm_enquiry_submit_button {
  border-bottom-color: #356a58 !important;
}

/* Admin view hover */
#wcfm-main-contentainer .wcfm_wp_admin_view:hover {
  color: #4a8a70 !important;
}

/* Enquiry manage page heading */
.woocommerce-MyAccount-content div.wcfm-collapse-content h2 {
  color: #356a58 !important;
}

/* Enquiry content links */
.inquiry_content_for .wcfm_store_for_inquiry a,
.inquiry_content_for .wcfm_product_for_inquiry a {
  color: #356a58 !important;
}

/* ============================================
   PART 2: Modern Chat Layout for Enquiry Thread
   ============================================ */

.wcfm-chat-container {
  max-height: 600px;
  overflow-y: auto;
  padding: 15px;
  background: #f5f7fa;
  border-radius: 8px;
  margin: 10px 0;
}

/* Chat row */
.wcfm-chat-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chat avatar */
.wcfm-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
  border: 2px solid #e0e0e0;
}

/* Chat bubble wrapper */
.wcfm-chat-bubble-wrap {
  max-width: 75%;
}

/* Chat bubble */
.wcfm-chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  word-wrap: break-word;
  position: relative;
}

/* Current user's bubble — right aligned, green background */
.wcfm-chat-row.chat-own {
  flex-direction: row-reverse;
}

.wcfm-chat-row.chat-own .wcfm-chat-avatar {
  margin-right: 0;
  margin-left: 10px;
}

.wcfm-chat-row.chat-own .wcfm-chat-bubble-wrap {
  text-align: right;
}

.wcfm-chat-row.chat-own .wcfm-chat-bubble {
  background: #356a58;
  color: #fff;
  border-color: #2d5c4e;
}

/* Chat meta (name + time) */
.wcfm-chat-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcfm-chat-row.chat-own .wcfm-chat-meta {
  justify-content: flex-end;
}

.wcfm-chat-meta .chat-author {
  font-weight: 600;
  color: #555;
}

.wcfm-chat-row.chat-own .wcfm-chat-meta .chat-author {
  color: #356a58;
}

/* New message highlight — subtle green left border + light tint */
.wcfm-chat-row.chat-new .wcfm-chat-bubble {
  border-left: 3px solid #356a58;
  background: #edf7f2;
}

.wcfm-chat-row.chat-new.chat-own .wcfm-chat-bubble {
  background: #2d6b50;
  border-left: 3px solid #1a4a36;
}

/* Delete button in chat */
.wcfm-chat-delete {
  font-size: 12px;
  color: #ccc;
  cursor: pointer;
  margin-top: 4px;
  transition: color 0.2s;
}

.wcfm-chat-delete:hover {
  color: #e85656;
}

/* Attachments in chat bubble */
.wcfm-chat-bubble img {
  max-width: 200px;
  border-radius: 8px;
  margin-top: 8px;
}

/* Chat reply form */
.wcfm-chat-form {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wcfm-chat-form .wcfm_chat_reply_textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
}

.wcfm-chat-form .wcfm_chat_reply_textarea:focus {
  border-color: #356a58;
  outline: none;
  box-shadow: 0 0 0 2px rgba(53, 106, 88, 0.15);
}

.wcfm-chat-form .wcfm_chat_send_btn {
  background: #356a58;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.wcfm-chat-form .wcfm_chat_send_btn:hover {
  background: #2d5c4e;
}

/* Chat section header */
.wcfm-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.wcfm-chat-header h2 {
  margin: 0;
  font-size: 16px;
  color: #356a58 !important;
}

.wcfm-chat-header .reply-count {
  font-size: 13px;
  color: #888;
  font-weight: normal;
}

/* ============================================
   PART 3: Mobile Responsive Chat
   ============================================ */

@media only screen and (max-width: 640px) {
  .wcfm-chat-bubble-wrap {
    max-width: 85%;
  }

  .wcfm-chat-avatar {
    width: 32px;
    height: 32px;
  }

  .wcfm-chat-container {
    padding: 10px;
  }

  .wcfm-chat-bubble {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ============================================
   PART 4: Mobile Sell Button + Post-Ad Form
   ============================================ */

/* Raised circular green Sell button in the mobile bottom nav */
.mobile-bottom-nav li a i.fa-plus-circle,
.mobile-bottom-nav li a[href$="/sell/"] i {
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: #356a58;
  color: #ffffff;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(53, 106, 88, 0.45);
  margin-bottom: 3px;
}

.mobile-bottom-nav li a[href$="/sell/"] {
  color: #356a58;
  font-weight: 600;
}

/* Post-Ad form */
.wcfm-uke-sell-wrap {
  max-width: 520px;
  margin: 30px auto;
  padding: 26px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.wcfm-uke-sell-form p {
  margin: 0 0 16px;
}

.wcfm-uke-sell-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1f2937;
}

.wcfm-uke-sell-form input[type="text"],
.wcfm-uke-sell-form input[type="tel"],
.wcfm-uke-sell-form input[type="number"],
.wcfm-uke-sell-form select,
.wcfm-uke-sell-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  box-sizing: border-box;
}

.wcfm-uke-sell-form input:focus,
.wcfm-uke-sell-form select:focus,
.wcfm-uke-sell-form textarea:focus {
  outline: none;
  border-color: #356a58;
  box-shadow: 0 0 0 3px rgba(53, 106, 88, 0.15);
}

.wcfm-uke-sell-form input[type="file"] {
  padding: 8px;
}

.wcfm-required {
  color: #dc2626;
  margin-left: 2px;
}

.wcfm-field-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.wcfm-pay-note {
  display: block;
  margin: 6px 0 8px;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  font-size: 13px;
}

.wcfm-pay-note strong {
  color: #1f2937;
}

.wcfm-uke-sell-form input[type="file"][required]:invalid {
  border-color: #dc2626;
}

.wcfm-uke-sell-submit {
  background: #356a58;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.wcfm-uke-sell-submit:hover {
  background: #2a5546;
}

.wcfm-uke-sell-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.wcfm-uke-sell-errors p {
  margin: 4px 0;
}

.wcfm-uke-sell-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

/* ============================================
   PART 5: Mobile Product Grid — 2 per row
   ============================================ */

@media only screen and (max-width: 767px) {
  /* Classic WooCommerce shop / archive / homepage grid:
     convert to a 2-up flex row so cards sit side by side on phones.
     Loaded last + !important so it beats the theme's 1-column rule. */
  ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 3.2%;
  }

  ul.products li.product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 48.4% !important;
    max-width: 48.4% !important;
    min-width: 0 !important;
    flex: 0 0 48.4% !important;
    margin: 0 0 16px !important;
    float: none !important;
    clear: none !important;
  }

  /* Fallback for WooCommerce Blocks product grids */
  .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ============================================
   PART 6: Featured / Sponsored Section (Home Page)
   ============================================ */

.wcfm-uke-featured-section {
  margin: 40px 0;
  padding: 0 15px;
}

.wcfm-uke-featured-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #356a58;
  position: relative;
}

.wcfm-uke-featured-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #356a58;
}

.wcfm-uke-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.wcfm-uke-featured-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.wcfm-uke-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #356a58;
}

.wcfm-uke-featured-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.wcfm-uke-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wcfm-uke-featured-card:hover .wcfm-uke-featured-thumb img {
  transform: scale(1.05);
}

.wcfm-uke-featured-content {
  padding: 16px;
  position: relative;
}

.wcfm-uke-featured-badge {
  display: inline-block;
  background: #356a58;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(53, 106, 88, 0.3);
}

.wcfm-uke-featured-card .wcfm-uke-featured-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
  border: none;
  padding: 0;
}

.wcfm-uke-featured-card .wcfm-uke-featured-title::after {
  display: none;
}

.wcfm-uke-featured-card .wcfm-uke-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.wcfm-uke-featured-card .wcfm-uke-featured-title a:hover {
  color: #356a58;
}

.wcfm-uke-featured-card .wcfm-uke-featured-content p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.wcfm-uke-featured-price {
  font-size: 18px;
  font-weight: 700;
  color: #356a58;
  margin-top: 8px;
}

.wcfm-uke-featured-price .woocommerce-Price-amount {
  color: inherit;
}

.wcfm-uke-featured-price .woocommerce-Price-currencySymbol {
  font-weight: 700;
}

/* Mobile adjustments */
@media only screen and (max-width: 640px) {
  .wcfm-uke-featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wcfm-uke-featured-section {
    margin: 24px 0;
    padding: 0 12px;
  }

  .wcfm-uke-featured-title {
    font-size: 20px;
  }
}

/* ============================================
   PART 7: Dark Mode / Light Mode Toggle
   ============================================ */

/* CSS Variables for Light / Dark Mode */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --input-bg: #ffffff;
}

[data-theme="dark"] {
  --bg-primary: #121824;
  --bg-secondary: #1a2234;
  --bg-card: #1e293b;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --input-bg: #0f172a;
}

/* Dark mode theme surface overrides */
[data-theme="dark"] body,
[data-theme="dark"] #page,
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .main-navigation,
[data-theme="dark"] section,
[data-theme="dark"] article,
[data-theme="dark"] .card,
[data-theme="dark"] .wcfm-uke-featured-card,
[data-theme="dark"] .product,
[data-theme="dark"] .type-post {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6,
[data-theme="dark"] a,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] label,
[data-theme="dark"] div {
  color: var(--text-primary);
}

[data-theme="dark"] a:hover {
  color: #356a58 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--input-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

/* Toggle Switch Button in Header & Mobile Nav */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  border-color: #356a58;
  color: #356a58;
}

.theme-toggle-floating {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: var(--bg-card);
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
}

/* ============================================
   PART 8: Product Social Share Buttons
   ============================================ */

.wcfm-uke-share-container {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px dashed var(--border-color, #e5e7eb);
  border-bottom: 1px dashed var(--border-color, #e5e7eb);
}

.wcfm-uke-share-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
  margin-bottom: 10px;
}

.wcfm-uke-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wcfm-uke-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.wcfm-uke-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wcfm-uke-share-whatsapp { background-color: #25D366; }
.wcfm-uke-share-telegram { background-color: #0088cc; }
.wcfm-uke-share-facebook { background-color: #1877F2; }
.wcfm-uke-share-twitter  { background-color: #1DA1F2; }
.wcfm-uke-share-copy     { background-color: #356a58; }

.wcfm-uke-share-container svg, .wcfm-uke-share-btn svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; min-width: 16px !important; min-height: 16px !important; fill: currentColor !important; display: inline-block !important; margin: 0 !important; }

/* Force SVG icon sizing inside share container */
.wcfm-uke-share-container svg,
.wcfm-uke-share-btn svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  fill: currentColor !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
/* ============================================
   PART 9: Categories Page - Beautiful Grid Layout
   ============================================ */

/* Categories page container */
.page-id-86 .site-main,
.page-template-page-categories .site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Categories page title */
.page-id-86 .entry-title,
.page-template-page-categories .entry-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 40px;
  position: relative;
}

.page-id-86 .entry-title::after,
.page-template-page-categories .entry-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #356a58, #4a8a70);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Hide breadcrumb on categories page for cleaner look */
.page-id-86 .woocommerce-breadcrumb {
  display: none;
}

/* Categories grid container - target the content */
.page-id-86 .entry-content,
.page-template-page-categories .entry-content {
  display: block;
}

/* Category cards styling - works with most page builders/shortcodes */
.page-id-86 .entry-content > div,
.page-id-86 .entry-content > ul,
.page-id-86 .entry-content [class*="category"],
.page-id-86 .entry-content [class*="product-category"] {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Individual category card */
.page-id-86 .entry-content li,
.page-id-86 .entry-content [class*="category-item"],
.page-id-86 .entry-content [class*="product-category"] {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.page-id-86 .entry-content li:hover,
.page-id-86 .entry-content [class*="category-item"]:hover,
.page-id-86 .entry-content [class*="product-category"]:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(53, 106, 88, 0.15);
  border-color: #356a58;
}

/* Category link wrapper */
.page-id-86 .entry-content li a,
.page-id-86 .entry-content [class*="category"] a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Category image container */
.page-id-86 .entry-content li img,
.page-id-86 .entry-content [class*="category"] img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-id-86 .entry-content li:hover img,
.page-id-86 .entry-content [class*="category"]:hover img {
  transform: scale(1.08);
}

/* Category image wrapper */
.page-id-86 .entry-content li a > img,
.page-id-86 .entry-content li figure,
.page-id-86 .entry-content [class*="category"] figure {
  overflow: hidden;
  line-height: 0;
}

/* Category title/name */
.page-id-86 .entry-content li h2,
.page-id-86 .entry-content li h3,
.page-id-86 .entry-content li .woocommerce-loop-category__title,
.page-id-86 .entry-content [class*="category"] h2,
.page-id-86 .entry-content [class*="category"] h3 {
  padding: 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.page-id-86 .entry-content li:hover h2,
.page-id-86 .entry-content li:hover h3,
.page-id-86 .entry-content li:hover .woocommerce-loop-category__title {
  color: #356a58;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

/* Category count badge */
.page-id-86 .entry-content li mark,
.page-id-86 .entry-content li .count {
  background: #356a58;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* Hover overlay effect */
.page-id-86 .entry-content li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #356a58, #4a8a70, #356a58);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.page-id-86 .entry-content li:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* View all link style if present */
.page-id-86 .entry-content .view-all-link,
.page-id-86 .entry-content .cat-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #356a58;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.page-id-86 .entry-content .view-all-link:hover,
.page-id-86 .entry-content .cat-view-all:hover {
  gap: 10px;
}

/* Mobile responsive for categories */
@media only screen and (max-width: 992px) {
  .page-id-86 .entry-content > div,
  .page-id-86 .entry-content > ul,
  .page-id-86 .entry-content [class*="category"],
  .page-id-86 .entry-content [class*="product-category"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .page-id-86 .entry-title {
    font-size: 28px;
  }

  .page-id-86 .entry-content li img,
  .page-id-86 .entry-content [class*="category"] img {
    height: 180px;
  }
}

@media only screen and (max-width: 640px) {
  .page-id-86 .entry-content > div,
  .page-id-86 .entry-content > ul,
  .page-id-86 .entry-content [class*="category"],
  .page-id-86 .entry-content [class*="product-category"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .page-id-86 .site-main {
    padding: 20px 15px;
  }

  .page-id-86 .entry-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .page-id-86 .entry-content li img,
  .page-id-86 .entry-content [class*="category"] img {
    height: 200px;
  }

  .page-id-86 .entry-content li h2,
  .page-id-86 .entry-content li h3 {
    padding: 16px;
    font-size: 16px;
  }
}

/* Dark mode categories support */
[data-theme="dark"] .page-id-86 .entry-content li,
[data-theme="dark"] .page-id-86 .entry-content [class*="category-item"],
[data-theme="dark"] .page-id-86 .entry-content [class*="product-category"] {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .page-id-86 .entry-content li:hover,
[data-theme="dark"] .page-id-86 .entry-content [class*="category-item"]:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #356a58;
}

[data-theme="dark"] .page-id-86 .entry-title {
  color: var(--text-primary);
}

[data-theme="dark"] .page-id-86 .entry-content li h2,
[data-theme="dark"] .page-id-86 .entry-content li h3 {
  color: var(--text-primary);
  background: var(--bg-card);
}

[data-theme="dark"] .page-id-86 .entry-content li:hover h2,
[data-theme="dark"] .page-id-86 .entry-content li:hover h3 {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(53, 106, 88, 0.1) 100%);
  color: #356a58;
}
/* ============================================
   PART 9: Categories Page - Amazing Grid Design
   ============================================ */

/* Categories page container */
.custom-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
  width: 100%;
}

/* Individual category card */
.custom-category-grid .cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
  border: 2px solid #e8f0ed;
  border-radius: 20px;
  padding: 40px 24px;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(53, 106, 88, 0.08);
  min-height: 200px;
}

.custom-category-grid .cat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #356a58, #4a9a7a, #356a58);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.custom-category-grid .cat-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(53, 106, 88, 0.03) 100%);
  pointer-events: none;
}

.custom-category-grid .cat-btn:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #356a58;
  box-shadow: 0 20px 40px rgba(53, 106, 88, 0.2);
}

.custom-category-grid .cat-btn:hover::before {
  transform: scaleX(1);
}

/* Category icon */
.custom-category-grid .cat-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #356a58 0%, #2d5c4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(53, 106, 88, 0.3);
  position: relative;
  z-index: 1;
}

.custom-category-grid .cat-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(53, 106, 88, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-category-grid .cat-btn:hover .cat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(53, 106, 88, 0.4);
}

.custom-category-grid .cat-btn:hover .cat-icon::before {
  opacity: 1;
}

.custom-category-grid .cat-icon i {
  font-size: 36px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.custom-category-grid .cat-btn:hover .cat-icon i {
  transform: scale(1.1);
}

/* Category title */
.custom-category-grid .cat-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.custom-category-grid .cat-btn:hover .cat-title {
  color: #356a58;
}

/* Arrow indicator */
.custom-category-grid .cat-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  font-size: 14px;
  color: #356a58;
  opacity: 0;
  transition: all 0.3s ease;
}

.custom-category-grid .cat-btn:hover .cat-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Animated background particles */
.custom-category-grid .cat-btn::before {
  background: linear-gradient(90deg, #356a58, #4a9a7a, #356a58);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Mobile responsive */
@media only screen and (max-width: 992px) {
  .custom-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .custom-category-grid .cat-btn {
    padding: 30px 18px;
    min-height: 180px;
  }
  
  .custom-category-grid .cat-icon {
    width: 70px;
    height: 70px;
  }
  
  .custom-category-grid .cat-icon i {
    font-size: 28px;
  }
  
  .custom-category-grid .cat-title {
    font-size: 16px;
  }
}

@media only screen and (max-width: 640px) {
  .custom-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 15px 0;
  }
  
  .custom-category-grid .cat-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px;
    min-height: auto;
    gap: 16px;
  }
  
  .custom-category-grid .cat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    margin-bottom: 0;
  }
  
  .custom-category-grid .cat-icon i {
    font-size: 24px;
  }
  
  .custom-category-grid .cat-title {
    font-size: 16px;
    text-align: left;
    flex: 1;
  }
  
  .custom-category-grid .cat-arrow {
    position: static;
    transform: none;
    opacity: 0.6;
  }
  
  .custom-category-grid .cat-btn:hover .cat-arrow {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* Dark mode support */
[data-theme="dark"] .custom-category-grid .cat-btn {
  background: linear-gradient(145deg, var(--bg-card) 0%, #1a2e28 100%);
  border-color: #2a4a40;
}

[data-theme="dark"] .custom-category-grid .cat-title {
  color: var(--text-primary);
}

[data-theme="dark"] .custom-category-grid .cat-btn:hover {
  border-color: #356a58;
}

[data-theme="dark"] .custom-category-grid .cat-btn:hover .cat-title {
  color: #4a9a7a;
}

/* Page title styling for categories page */
.page-id-86 .entry-title,
body.page-categories .entry-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
  position: relative;
}

.page-id-86 .entry-title::after,
body.page-categories .entry-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #356a58, #4a9a7a);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Breadcrumb styling */
.page-id-86 .woocommerce-breadcrumb {
  text-align: center;
  margin-bottom: 30px;
}

/* Category count badge animation */
.custom-category-grid .cat-btn .cat-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #356a58;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.custom-category-grid .cat-btn:hover .cat-count {
  opacity: 1;
  transform: scale(1.05);
}

