/* ============================================================
   PawHaus — Pet Supplies Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --ph-terra:       var(--main-color-one, #C87040);
  --ph-terra-deep:  var(--main-color-two, #A05A30);
  --ph-terra-light: var(--secondary-color, #FDF0E6);
  --ph-sage:        var(--main-color-three, #7D9B76);
  --ph-sage-light:  var(--secondary-color-two, #EBF3EA);
  --ph-cream:       var(--section-bg-2, #FBF6EF);
  --ph-bg:          var(--section-bg-1, #FAFAF7);
  --ph-white:       #FFFFFF;
  --ph-dark:        var(--heading-color, #2D2318);
  --ph-muted:       var(--body-color, #7A6A5A);
  --ph-border:      var(--extra-light-color, #E8DED2);
  --ph-radius:      12px;
  --ph-radius-sm:   6px;
  --ph-radius-xl:   24px;
  --ph-shadow:      0 8px 28px -8px color-mix(in srgb, var(--ph-terra) 20%, transparent);
  --ph-shadow-sm:   0 4px 16px -4px color-mix(in srgb, var(--ph-terra) 12%, transparent);
  --ph-font:        'Nunito', 'Helvetica Neue', sans-serif;
  --ph-green:       var(--ph-sage);
  --ph-orange:      var(--ph-terra);
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--ph-bg); font-family: var(--ph-font); color: var(--ph-dark); margin: 0; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- Promo Bar ---- */
.ph-promo-bar { background: var(--ph-terra); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.ph-promo-bar a { color: #FFE0CC; text-decoration: underline; }

/* ---- Navbar ---- */
.ph-navbar { background: var(--ph-white); border-top: 4px solid var(--ph-terra); border-bottom: 1px solid #EDE8E2; padding: 12px 0; position: sticky; top: 0; z-index: 1000; }
.ph-brand { font-size: 24px; font-weight: 800; color: var(--ph-dark); display: flex; align-items: center; gap: 8px; }
.ph-brand-paw { color: var(--ph-terra); font-size: 22px; }
.ph-brand span { color: var(--ph-terra); }
.ph-nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ph-nav-links a { font-size: 14px; font-weight: 700; color: var(--ph-muted); transition: color .2s; }
.ph-nav-links a:hover { color: var(--ph-terra); }
.ph-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1.5px solid #E5E5E5; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--ph-muted); cursor: pointer; transition: all .2s; position: relative; text-decoration: none; }
.ph-icon-btn:hover { background: var(--ph-terra); color: #fff; border-color: var(--ph-terra); }
.ph-badge { position: absolute; top: -4px; right: -4px; background: var(--ph-terra); color: #fff; font-size: 9px; font-weight: 800; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; }
.ph-navbar-logo{ width:160px}
.ph-logo-img { max-height: 46px; object-fit: contain; display: block; }
/* ---- Buttons ---- */
.ph-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border-radius: var(--ph-radius-xl); font-family: var(--ph-font); font-size: 14px; font-weight: 800; cursor: pointer; border: 2px solid transparent; transition: all .2s; text-decoration: none; }
.ph-btn-terra { background: var(--ph-terra); color: #fff; border-color: var(--ph-terra); }
.ph-btn-terra:hover { background: var(--ph-terra-deep); border-color: var(--ph-terra-deep); color: #fff; }
.ph-btn-sage { background: var(--ph-sage); color: #fff; border-color: var(--ph-sage); }
.ph-btn-sage:hover { background: #5E7E57; color: #fff; }
.ph-btn-outline { background: transparent; color: var(--ph-terra); border-color: var(--ph-terra); }
.ph-btn-outline:hover { background: var(--ph-terra); color: #fff; }
.ph-btn-ghost { background: var(--ph-cream); color: var(--ph-muted); border-color: var(--ph-border); }
.ph-btn-ghost:hover { border-color: var(--ph-terra); color: var(--ph-terra); }
.ph-btn-sm { padding: 7px 18px; font-size: 13px; }
.w-100 { width: 100% !important; }
.justify-content-center { justify-content: center !important; }

/* ---- Section Headings ---- */
.ph-section-tag { display: inline-block; background: var(--ph-terra-light); color: var(--ph-terra); font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 20px; margin-bottom: 10px; }
.ph-section-title { font-size: 30px; font-weight: 800; color: var(--ph-dark); margin-bottom: 4px; }
.ph-section-title span { color: var(--ph-terra); }
.ph-section-sub { font-size: 14px; color: var(--ph-muted); margin-bottom: 32px; font-weight: 600; }
.ph-sec-heading { text-align: center; margin-bottom: 32px; }

/* ---- Category Cards (base — see widget section for grid & card styles) ---- */
.ph-cat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ph-terra-light, #FDE8D8); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; transition: all .2s; overflow: hidden; flex-shrink: 0; }
.ph-cat-name { font-size: 14px; font-weight: 800; color: var(--ph-dark); margin-bottom: 3px; }
.ph-cat-count { font-size: 12px; color: var(--ph-muted); font-weight: 600; }

/* ---- Product Cards ---- */
.ph-card { background: var(--ph-white); border-radius: var(--ph-radius); border: 1px solid #EDE8E2; overflow: hidden; transition: all .25s; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ph-card:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--ph-terra) 14%, transparent); transform: translateY(-4px); border-color: var(--ph-terra); }
.ph-card-img { height: 210px; background: var(--ph-terra-light); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ph-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph-card:hover .ph-card-img img { transform: scale(1.05); }
.ph-card-badge { position: absolute; top: 10px; left: 10px; background: var(--ph-terra); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.ph-card-badge-new { background: var(--new-color, #7D9B76); }
.ph-card-wishlist { position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ph-muted); box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; transition: all .2s; border: none; }
.ph-card-wishlist:hover { background: var(--ph-terra); color: #fff; }
.ph-card-body { padding: 14px; }
.ph-card-cat { font-size: 11px; font-weight: 800; color: var(--ph-terra); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ph-card-name { font-size: 15px; font-weight: 800; color: var(--ph-dark); margin-bottom: 6px; line-height: 1.3; }
.ph-card-name a { color: inherit; text-decoration: none; }
.ph-card-name a:hover { color: var(--ph-terra); }
.ph-stars { color: var(--review-color, #FABE50); font-size: 12px; margin-bottom: 8px; }
.ph-card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ph-price-sale { font-size: 18px; font-weight: 800; color: var(--ph-dark); }
.ph-price-orig { font-size: 13px; color: var(--ph-muted); text-decoration: line-through; }
.ph-card-atc { width: 100%; padding: 9px; border-radius: var(--ph-radius-xl); background: var(--ph-terra); color: #fff; border: none; font-family: var(--ph-font); font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ph-card-atc:hover { background: var(--ph-terra-deep); }

/* ---- Page Banner / Breadcrumb ---- */
.ph-page-banner { background: linear-gradient(135deg, var(--ph-terra-light) 0%, var(--breadcrumb-bg, #FBF6EF) 100%); padding: 36px 0; border-bottom: 2px solid var(--ph-border); }
.ph-page-banner h1 { font-size: 28px; font-weight: 800; color: var(--ph-dark); margin: 0 0 4px; }
.ph-breadcrumb { font-size: 13px; color: var(--ph-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ph-breadcrumb a { color: var(--ph-terra); }
.ph-breadcrumb .sep { color: var(--ph-muted); }
.ph-breadcrumb .current { color: var(--ph-dark); font-weight: 700; }

/* ---- Sidebar ---- */
.ph-sidebar-card { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); padding: 20px; margin-bottom: 20px; }
.ph-sidebar-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--ph-terra); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ph-border); }
.ph-filter-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ph-dark); cursor: pointer; }
.ph-filter-item label { cursor: pointer; margin: 0; display: flex; align-items: center; gap: 8px; }
.ph-filter-item input[type=checkbox], .ph-filter-item input[type=radio] { accent-color: var(--ph-terra); width: 15px; height: 15px; }
.ph-filter-count { font-size: 11px; color: var(--ph-muted); background: var(--ph-cream); border: 1px solid var(--ph-border); padding: 1px 7px; border-radius: 20px; }
.ph-price-inputs { display: flex; gap: 8px; }
.ph-price-input { flex: 1; padding: 8px 10px; border: 2px solid var(--ph-border); border-radius: var(--ph-radius-sm); font-size: 13px; font-family: var(--ph-font); width: 100%; outline: none; background: var(--ph-cream); }
.ph-select { padding: 9px 14px; border: 2px solid var(--ph-border); border-radius: var(--ph-radius-xl); font-family: var(--ph-font); font-size: 13px; font-weight: 700; color: var(--ph-dark); outline: none; background: var(--ph-white); appearance: auto; }
.ph-star-filter { color: var(--review-color, #FABE50); }

/* ---- Sort Bar ---- */
.ph-sort-bar { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; font-size: 13px; color: var(--ph-muted); flex-wrap: wrap; }
.ph-view-toggle button { width: 34px; height: 34px; border: 2px solid var(--ph-border); background: #fff; border-radius: 6px; cursor: pointer; color: var(--ph-muted); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.ph-view-toggle button.active, .ph-view-toggle button:hover { background: var(--ph-terra); border-color: var(--ph-terra); color: #fff; }

/* ---- Pagination ---- */
.ph-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.ph-page-btn { width: 38px; height: 38px; border-radius: var(--ph-radius); border: 2px solid var(--ph-border); background: var(--ph-white); font-size: 13px; font-weight: 800; color: var(--ph-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; font-family: var(--ph-font); }
.ph-page-btn:hover, .ph-page-btn.active { background: var(--ph-terra); border-color: var(--ph-terra); color: #fff; }

/* ---- Auth Cards ---- */
.ph-auth-card { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); padding: 36px; box-shadow: var(--ph-shadow-sm); }
.ph-auth-header { text-align: center; margin-bottom: 28px; }
.ph-auth-logo { display: inline-block; margin-bottom: 16px; }
.ph-auth-title { font-size: 26px; font-weight: 800; color: var(--ph-dark); margin-bottom: 4px; }
.ph-auth-sub { font-size: 14px; color: var(--ph-muted); margin: 0; }
.ph-auth-form { display: flex; flex-direction: column; gap: 18px; }
.ph-form-group { display: flex; flex-direction: column; gap: 6px; }
.ph-label { font-size: 13px; font-weight: 700; color: var(--ph-dark); }
.ph-required { color: var(--ph-terra); }
.ph-input { padding: 11px 14px; border: 2px solid var(--ph-border); border-radius: var(--ph-radius); font-size: 14px; font-family: var(--ph-font); color: var(--ph-dark); outline: none; transition: border-color .2s; background: var(--ph-cream); width: 100%; }
.ph-input:focus { border-color: var(--ph-terra); }
.ph-input-wrap { position: relative; }
.ph-input-wrap .ph-input { padding-right: 42px; }
.ph-input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ph-muted); font-size: 16px; }
.ph-form-row-between { display: flex; align-items: center; justify-content: space-between; }
.ph-remember { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ph-forgot { font-size: 13px; color: var(--ph-terra); }
.ph-auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ph-muted); }
.ph-auth-switch a { color: var(--ph-terra); font-weight: 700; }
.ph-generate-pwd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ph-terra); font-weight: 700; cursor: pointer; }

/* ---- Cart / Checkout ---- */
.ph-cart-table { width: 100%; border-collapse: collapse; }
.ph-cart-table th, .ph-cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ph-border); font-size: 14px; }
.ph-cart-table th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--ph-muted); background: var(--ph-cream); }
.ph-cart-img { width: 64px; height: 64px; border-radius: var(--ph-radius-sm); overflow: hidden; background: var(--ph-terra-light); flex-shrink: 0; }
.ph-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-qty { display: flex; align-items: center; border: 2px solid var(--ph-border); border-radius: var(--ph-radius-xl); overflow: hidden; width: fit-content; }
.ph-qty button { width: 32px; height: 32px; background: var(--ph-cream); border: none; cursor: pointer; font-size: 16px; color: var(--ph-muted); display: flex; align-items: center; justify-content: center; }
.ph-qty button:hover { background: var(--ph-terra); color: #fff; }
.ph-qty input { width: 46px; border: none; text-align: center; font-size: 14px; font-weight: 700; color: var(--ph-dark); background: #fff; outline: none; font-family: var(--ph-font); }
.ph-remove-btn { background: none; border: none; color: var(--ph-muted); cursor: pointer; font-size: 18px; padding: 4px; border-radius: 50%; transition: all .2s; }
.ph-remove-btn:hover { color: var(--ph-terra); background: var(--ph-terra-light); }
.ph-price { font-size: 16px; font-weight: 800; color: var(--ph-terra); }
.ph-order-summary { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); padding: 24px; position: sticky; top: 90px; }
.ph-order-summary-title { font-size: 16px; font-weight: 800; color: var(--ph-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ph-border); }
.ph-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ph-border); font-size: 14px; color: var(--ph-muted); }
.ph-summary-row:last-child { border-bottom: none; }
.ph-summary-row.total { font-weight: 800; color: var(--ph-dark); font-size: 16px; }
.ph-summary-price { font-weight: 700; color: var(--ph-dark); }
.ph-section-box { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); padding: 24px; margin-bottom: 20px; }
.ph-section-box-title { font-size: 15px; font-weight: 800; color: var(--ph-dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ph-border); display: flex; align-items: center; gap: 8px; }
.ph-mini-cart-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ph-border); }
.ph-mini-cart-img { width: 48px; height: 48px; border-radius: var(--ph-radius-sm); overflow: hidden; background: var(--ph-terra-light); flex-shrink: 0; }

/* ---- Newsletter ---- */
.ph-newsletter-section { background: linear-gradient(135deg, var(--ph-terra-light) 0%, var(--ph-sage-light) 100%); }
.ph-newsletter-title { font-size: 28px; font-weight: 800; color: var(--ph-dark); margin-bottom: 10px; }
.ph-newsletter-title span { color: var(--ph-terra); }
.ph-newsletter-sub { font-size: 14px; color: var(--ph-muted); margin-bottom: 24px; font-weight: 600; }
.ph-newsletter-form { display: block; max-width: 440px; margin: 0 auto; }
.ph-nl-row { display: flex; border-radius: var(--ph-radius-xl); overflow: hidden; background: #fff; border: 2px solid var(--ph-border); }
.ph-newsletter-form .form-message-show { font-size: 13px; margin-bottom: 8px; color: var(--ph-dark); text-align: center; font-weight: 600; }
.ph-newsletter-form .form-message-show:empty { display: none; }
.ph-newsletter-input { flex: 1; border: 0; padding: 12px 18px; font-size: 14px; font-family: var(--ph-font); outline: none; color: var(--ph-dark); background: transparent; }
.ph-newsletter-form button { background: var(--ph-terra); color: #fff; border: 0; padding: 12px 22px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: var(--ph-font); white-space: nowrap; }

/* ---- Footer ---- */
.ph-footer { background: var(--ph-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
/*.ph-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.3); }*/

/* ---- Blog ---- */
.ph-blog-card { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); overflow: hidden; transition: all .25s; }
.ph-blog-card:hover { box-shadow: var(--ph-shadow); transform: translateY(-3px); }
.ph-blog-thumb { height: 200px; background: var(--ph-terra-light); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.ph-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph-blog-card:hover .ph-blog-thumb img { transform: scale(1.04); }
.ph-blog-cat-pill { position: absolute; top: 12px; left: 12px; background: var(--ph-terra); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.ph-blog-body { padding: 18px; }
.ph-blog-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ph-muted); margin-bottom: 10px; }
.ph-blog-title { font-size: 17px; font-weight: 800; color: var(--ph-dark); margin-bottom: 8px; line-height: 1.4; }
.ph-blog-title a { color: inherit; }
.ph-blog-title a:hover { color: var(--ph-terra); }
.ph-blog-excerpt { font-size: 13px; color: var(--ph-muted); line-height: 1.6; margin-bottom: 14px; }
.ph-blog-read-more { font-size: 13px; font-weight: 800; color: var(--ph-terra); display: inline-flex; align-items: center; gap: 4px; }
.ph-blog-read-more:hover { color: var(--ph-terra-deep); }
.ph-tag { display: inline-block; padding: 5px 12px; background: var(--ph-terra-light); border: 1px solid var(--ph-border); color: var(--ph-terra); font-size: 12px; font-weight: 700; border-radius: 20px; transition: all .2s; }
.ph-tag:hover { background: var(--ph-terra); color: #fff; }
.ph-article { background: var(--ph-white); border: 2px solid var(--ph-border); border-radius: var(--ph-radius); overflow: hidden; }
.ph-article-hero { height: 360px; background: var(--ph-terra-light); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ph-article-body { padding: 28px; }
.ph-article-cat { display: inline-block; background: var(--ph-terra-light); color: var(--ph-terra); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.ph-article-title { font-size: clamp(22px,3vw,30px); font-weight: 800; color: var(--ph-dark); margin-bottom: 12px; }
.ph-article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ph-muted); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ph-border); }
.ph-article-content { font-size: 15px; line-height: 1.8; color: var(--ph-dark); }
.ph-article-content img { max-width: 100%; border-radius: var(--ph-radius-sm); margin: 16px 0; }
.ph-post-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--ph-border); }
.ph-comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ph-border); }
.ph-comment:last-child { border-bottom: none; }
.ph-comment.reply { margin-left: 40px; }
.ph-comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ph-terra-light); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ph-comment-name { font-size: 14px; font-weight: 800; color: var(--ph-dark); }
.ph-comment-date { font-size: 12px; color: var(--ph-muted); margin-bottom: 6px; }
.ph-comment-text { font-size: 14px; color: var(--ph-muted); line-height: 1.6; margin: 0; }
.ph-reply-btn { background: none; border: 1px solid var(--ph-border); color: var(--ph-terra); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; cursor: pointer; font-family: var(--ph-font); margin-top: 6px; transition: all .2s; }
.ph-reply-btn:hover { background: var(--ph-terra); color: #fff; }

/* ---- Product Details ---- */
.ph-thumb-grid { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.ph-thumb-list { display: flex; flex-direction: column; gap: 8px; }
.ph-thumb { width: 72px; height: 72px; border-radius: var(--ph-radius-sm); border: 2px solid var(--ph-border); overflow: hidden; cursor: pointer; transition: border-color .2s; background: var(--ph-terra-light); display: flex; align-items: center; justify-content: center; }
.ph-thumb.active, .ph-thumb:hover { border-color: var(--ph-terra); }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-main-img { border-radius: var(--ph-radius); border: 2px solid var(--ph-border); overflow: hidden; background: var(--ph-terra-light); aspect-ratio: 1; display: flex; align-items: stretch; justify-content: center; }
.ph-main-img .shop-details-thums { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ph-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Color swatch circles */
.ph-product-form .size-lists.color-list li { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 0; flex-shrink: 0; border: 3px solid var(--ph-border); }
.ph-product-form .size-lists.color-list li:hover, .ph-product-form .size-lists.color-list li.active { border-color: var(--ph-terra); transform: scale(1.15); }
.ph-product-title { font-size: clamp(20px,3vw,28px); font-weight: 800; color: var(--ph-dark); margin-bottom: 10px; }
.ph-product-price { font-size: 30px; font-weight: 800; color: var(--ph-terra); }
.ph-product-price-old { font-size: 16px; color: var(--ph-muted); text-decoration: line-through; margin-left: 8px; }
.ph-tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--ph-border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.ph-tab-nav::-webkit-scrollbar { display: none; }
.ph-tab-nav-btn { padding: 12px 24px; font-size: 14px; font-weight: 700; color: var(--ph-muted); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: var(--ph-font); transition: all .2s; }
.ph-tab-nav-btn.active { color: var(--ph-terra); border-bottom-color: var(--ph-terra); }
.ph-tab-panel { display: none; }
.ph-tab-panel.active { display: block; }
.ph-product-form .size-lists { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ph-product-form .size-lists li { padding: 6px 16px; border: 2px solid var(--ph-border); border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ph-muted); transition: all .2s; }
.ph-product-form .size-lists li:hover, .ph-product-form .size-lists li.active { border-color: var(--ph-terra); color: var(--ph-terra); background: var(--ph-terra-light); }
.ph-product-form .size-lists li.disabled { opacity: .45; pointer-events: none; }
.ph-product-form .input-title { font-size: 13px; font-weight: 700; color: var(--ph-dark); display: block; margin-bottom: 8px; }
.ph-product-form .form--input { display: none; }

/* ── Page Builder Widgets ────────────────────────────────────────────────── */

/* ── Navbar: search ── */
.ph-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ph-search-wrap { position: relative; flex: 1; max-width: 340px; display: flex; align-items: center; border: 1.5px solid var(--ph-border); border-radius: 50px; overflow: visible; background: var(--ph-cream); }
.ph-search-input { flex: 1; border: 0; padding: 9px 14px; font-size: 14px; font-family: var(--ph-font); background: transparent; outline: none; color: var(--ph-dark); border-radius: 50px 0 0 50px; }
.ph-search-btn { background: var(--ph-terra); border: 0; color: #fff; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; flex-shrink: 0; transition: background .2s; border-radius: 0 50px 50px 0; }
.ph-search-btn:hover { background: var(--ph-terra-deep); }
.ph-search-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1.5px solid var(--ph-border); border-radius: 10px; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,.12); list-style: none; margin: 0; padding: 6px 0; max-height: 380px; overflow-x: hidden; overflow-y: auto; }
.ph-search-dropdown.open { display: block; }
.ph-search-dropdown .product-suggestion-list-item { width: 100% !important; }
.ph-search-dropdown .product-suggestion-list-link, .ph-search-dropdown li > a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ph-dark, #1a1a1a); transition: background .15s; border-radius: 8px; margin: 0 4px; }
.ph-search-dropdown .product-suggestion-list-link:hover, .ph-search-dropdown li > a:hover { background: rgba(0,0,0,.04); }
.ph-search-dropdown .product-image { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--ph-border); }
.ph-search-dropdown .product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-search-dropdown .product-info { flex: 1; min-width: 0; }
.ph-search-dropdown .product-info-top { margin: 0 !important; }
.ph-search-dropdown .product-name, .ph-search-dropdown h6.product-name { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: #1a1a1a !important; margin: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; line-height: 1.4 !important; }
.ph-search-dropdown .price-update-through { display: flex !important; align-items: center; gap: 5px; margin-top: 2px; }
.ph-search-dropdown .flash-price, .ph-search-dropdown .flash-prices { font-size: 12px !important; font-weight: 700; color: var(--ph-terra); }
.ph-search-dropdown .flash-old-prices { font-size: 11px !important; color: #aaa; text-decoration: line-through; }
.ph-search-footer { border-top: 1px solid var(--ph-border) !important; margin-top: 6px; padding-top: 4px; }
.ph-search-footer a { display: flex !important; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px !important; margin: 0 !important; font-size: 12px; font-weight: 700; color: var(--ph-terra) !important; text-decoration: none; transition: background .15s; }
.ph-search-footer a:hover { background: rgba(0,0,0,.04) !important; }
.ph-search-empty { display: flex !important; align-items: center; justify-content: center; padding: 20px 14px; font-size: 13px; color: #aaa; }
ul.ph-nav-links { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 24px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
ul.ph-nav-links > li > a { font-size: 14px !important; font-weight: 700 !important; color: var(--ph-muted) !important; text-decoration: none !important; transition: color .2s; }
ul.ph-nav-links > li > a:hover { color: var(--ph-terra) !important; }
ul.ph-nav-links > li > ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1.5px solid var(--ph-border); border-radius: 12px; min-width: 180px; z-index: 1010; list-style: none; padding: 8px 0; margin: 6px 0 0; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
ul.ph-nav-links > li { position: relative; }
ul.ph-nav-links > li:hover > ul { display: block; }
ul.ph-nav-links > li > ul > li > a { display: block !important; padding: 9px 16px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--ph-muted) !important; text-decoration: none !important; transition: color .15s; }
ul.ph-nav-links > li > ul > li > a:hover { color: var(--ph-terra) !important; }

/* ── Hero widget ── */
.ph-hero-widget { background: var(--secondary-color, #FBF0E8); padding: 80px 0; }
.ph-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.ph-hero-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-terra); font-size: 14px; font-weight: 800; margin-bottom: 18px; }
.ph-hero-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; color: var(--ph-dark); line-height: 1.15; margin-bottom: 18px; }
.ph-hero-title span { color: var(--ph-terra); }
.ph-hero-sub { font-size: 15px; color: var(--ph-muted); line-height: 1.75; margin-bottom: 32px; max-width: 420px; }
.ph-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.ph-hero-image-wrap { display: flex; align-items: center; justify-content: center; }
.ph-hero-circle {width: 500px;
    height: 560px;
    overflow: hidden;
    border-radius: 74% 26% 65% 35% / 27% 30% 70% 73%;
    background: var(--ph-terra-light);
    flex-shrink: 0; }
.ph-hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero-circle-ph { display: flex; align-items: center; justify-content: center; font-size: 96px; color: var(--ph-terra); opacity: .35; }
@media(max-width: 991px) { .ph-hero-widget { padding: 48px 0; } .ph-hero-inner { grid-template-columns: 1fr; gap: 32px; } .ph-hero-circle { width: 260px; height: 260px; } }

/* ── Category grid widget ── */
.ph-category-grid-widget { background: var(--section-bg-1, #FAFAF5); padding: 80px 0; }
.ph-cats-head { text-align: center; margin-bottom: 48px; }
.ph-section-pill { display: inline-block; background: var(--ph-terra-light, #FDE8D8); color: var(--ph-terra); font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 50px; margin-bottom: 12px; }
.ph-cats-title { font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: var(--ph-dark); margin-bottom: 8px; }
.ph-cats-title span { color: var(--ph-terra); }
.ph-cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media(max-width: 991px) { .ph-cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width: 575px) { .ph-cats-grid { grid-template-columns: repeat(3, 1fr); } }
.ph-cat-card { border-radius: 16px; background: var(--ph-white); border: 1.5px solid #EDEDE8; text-align: center; padding: 28px 12px 20px; transition: all .25s; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.ph-cat-card:hover { border-color: var(--ph-terra); box-shadow: 0 6px 24px color-mix(in srgb, var(--ph-terra) 12%, transparent); transform: translateY(-3px); }

/* ── Featured products widget ── */
.ph-featured-products-widget { background: var(--secondary-color, #FBF0E8); padding: 80px 0; }
.ph-products-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.ph-products-tag { font-size: 12px; font-weight: 800; color: var(--ph-terra); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ph-products-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--ph-dark); margin: 0; }
.ph-products-title span { color: var(--ph-terra); }
.ph-btn-pill { border-radius: 50px !important; }
.ph-card-img-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 48px; color: var(--ph-muted); }
.ph-badge-campaign { background: var(--ph-dark); }
.ph-badge-tag { background: var(--ph-sage); }

/* ── Promo Banner widget ── */
.ph-promo-widget { background: var(--ph-terra); padding: 28px 0; }
.ph-promo-inner { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 40px; }
.ph-promo-title { font-size: clamp(24px, 3.5vw, 42px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.ph-promo-text { font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.75; margin-bottom: 28px; max-width: 520px; }
.ph-promo-btn { background: #fff; color: var(--ph-terra); border: 2px solid #fff; border-radius: 50px; padding: 12px 26px; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all .2s; }
.ph-promo-btn:hover { background: transparent; color: #fff; }
.ph-promo-visual-wrap { display: flex; align-items: center; justify-content: center; }
.ph-promo-img {object-fit: contain;
    width: 100%;
    height: 400px; }
.ph-promo-emoji { font-size: clamp(48px, 8vw, 80px); line-height: 1; text-align: center; }
@media(max-width: 767px) { .ph-promo-inner { grid-template-columns: 1fr; } .ph-promo-visual-wrap { display: none; } }

/* ── Newsletter widget ── */
.ph-newsletter-outer { background: var(--ph-cream); padding: 60px 0; }
.ph-newsletter-card { background: linear-gradient(135deg, var(--ph-terra-light) 0%, var(--ph-sage-light) 100%); border-radius: 24px; padding: 52px 40px; text-align: center;  margin: 0 auto; }
.ph-newsletter-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--ph-dark); margin-bottom: 10px; }
.ph-newsletter-title span { color: var(--ph-terra); }
.ph-newsletter-sub { font-size: 14px; color: var(--ph-muted); margin-bottom: 24px; font-weight: 600; max-width: 480px; margin-left: auto; margin-right: auto; }
.ph-newsletter-form { display: block; max-width: 440px; margin: 0 auto; }
.ph-nl-row { display: flex; border-radius: 50px; overflow: hidden; background: #fff; border: 2px solid var(--ph-border); }
.ph-newsletter-input { flex: 1; border: 0; padding: 12px 20px; font-size: 14px; font-family: var(--ph-font); outline: none; color: var(--ph-dark); background: transparent; min-width: 0; }
.ph-newsletter-btn { background: var(--ph-terra); color: #fff; border: 0; padding: 12px 22px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: var(--ph-font); white-space: nowrap; transition: background .2s; }
.ph-newsletter-btn:hover { background: var(--ph-terra-deep); }

/* ── Footer ── */
.ph-footer-brand { }
.ph-footer-logo-link { display: inline-block; margin-bottom: 14px; }
.ph-footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; margin-top: 8px; }
.ph-footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.ph-social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 15px; text-decoration: none; transition: all .2s; }
.ph-social-link:hover { background: var(--ph-terra); color: #fff; }
.ph-footer-heading { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ph-terra); margin-bottom: 16px; }
.ph-footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 10px; transition: color .2s; font-weight: 500; }
.ph-footer-link:hover { color: rgba(255,255,255,.9); }
.ph-footer-promise { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 12px; font-weight: 500; }
.ph-footer-promise-icon { font-size: 16px; flex-shrink: 0; }
.ph-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.3); }

/* Global Footer Widget Colors */
.ph-footer h6 { color: var(--ph-terra); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ph-footer p  { color: rgba(255,255,255,.65); width:70px; height: 40px}
.ph-footer a  { color: rgba(255,255,255,.65); text-decoration: none; }
.ph-footer a:hover { color: var(--ph-terra); }
.ph-auth-logo{ width:100px;}
