/*
Theme Name: PawLeaf Petmate
Template: storefront
Author: Custom
Version: 1.0
*/

/* Import Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* === Base Colors (Petmate style) === */
:root {
  --pm-navy: #14284b;
  --pm-navy-light: #1e3a6f;
  --pm-blue: #13a0db;
  --pm-blue-hover: #33b0ec;
  --pm-red: #d12b23;
  --pm-white: #ffffff;
  --pm-gray: #f5f5f5;
  --pm-text: #222222;
  --pm-text-light: #666666;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pm-text);
  background: var(--pm-white);
}

/* === Header === */
.site-header {
  background: var(--pm-white) !important;
  border-bottom: 1px solid #eee;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
.site-header .site-branding img {
  max-height: 50px;
}
.main-navigation ul li a {
  font-weight: 500;
  font-size: 15px;
  color: var(--pm-navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-navigation ul li a:hover {
  color: var(--pm-blue) !important;
}
.site-search .widget_product_search input[type=search] {
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* === Buttons === */
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart, .widget a.button {
  background-color: var(--pm-navy) !important;
  color: var(--pm-white) !important;
  border-radius: 4px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 24px;
  transition: all 0.2s ease;
}
button:hover, .button:hover, .added_to_cart:hover {
  background-color: var(--pm-navy-light) !important;
}

/* === Hero Banner === */
.pm-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pm-navy) 0%, var(--pm-navy-light) 100%);
  color: var(--pm-white);
  text-align: center;
  overflow: hidden;
}
.pm-hero-placeholder {
  border: 3px dashed rgba(255,255,255,0.3);
  padding: 60px 80px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}
.pm-hero-placeholder h2 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 15px;
  color: var(--pm-white);
}
.pm-hero-placeholder p {
  font-size: 18px;
  opacity: 0.8;
}

/* === Section Titles === */
.pm-section {
  padding: 70px 0;
}
.pm-section-title {
  text-align: center;
  margin-bottom: 50px;
}
.pm-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--pm-navy);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.pm-section-title p {
  font-size: 17px;
  color: var(--pm-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Product Grid === */
.pm-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
@media (max-width: 1024px) {
  .pm-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pm-products-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-hero { min-height: 350px; }
  .pm-hero-placeholder { padding: 30px; }
  .pm-hero-placeholder h2 { font-size: 28px; }
}

.pm-product-card {
  background: var(--pm-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eee;
}
.pm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.pm-product-card .pm-product-img {
  position: relative;
  padding-top: 100%;
  background: var(--pm-gray);
  overflow: hidden;
}
.pm-product-card .pm-product-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pm-product-card:hover .pm-product-img img {
  transform: scale(1.05);
}
.pm-product-card .pm-product-info {
  padding: 18px;
}
.pm-product-card .pm-product-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--pm-navy);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-product-card .pm-product-title a {
  color: inherit;
  text-decoration: none;
}
.pm-product-card .pm-product-title a:hover {
  color: var(--pm-blue);
}
.pm-product-card .pm-product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--pm-navy);
}
.pm-product-card .pm-product-price del {
  font-size: 14px;
  color: var(--pm-text-light);
  margin-left: 6px;
}
.pm-product-card .pm-product-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  padding: 10px;
  background: var(--pm-navy);
  color: var(--pm-white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.pm-product-card .pm-product-btn:hover {
  background: var(--pm-blue);
}

/* === Brand / Category Cards === */
.pm-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
@media (max-width: 768px) {
  .pm-brands-grid { grid-template-columns: 1fr; }
}
.pm-brand-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: var(--pm-gray);
  transition: transform 0.3s ease;
}
.pm-brand-card:hover {
  transform: translateY(-3px);
}
.pm-brand-card .pm-brand-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.pm-brand-card .pm-brand-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20,40,75,0.85) 0%, rgba(20,40,75,0.2) 60%, transparent 100%);
}
.pm-brand-card .pm-brand-content {
  position: relative;
  z-index: 2;
  color: var(--pm-white);
}
.pm-brand-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pm-brand-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 15px;
}
.pm-brand-card .pm-brand-link {
  display: inline-block;
  color: var(--pm-white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pm-brand-card .pm-brand-link:hover {
  color: var(--pm-blue-hover);
}

/* === Trust Section === */
.pm-trust {
  background: var(--pm-gray);
}
.pm-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 768px) {
  .pm-trust-grid { grid-template-columns: 1fr; }
}
.pm-trust-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--pm-navy);
  margin-bottom: 18px;
}
.pm-trust-content p {
  font-size: 16px;
  color: var(--pm-text-light);
  line-height: 1.7;
}
.pm-trust-img {
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* === Newsletter === */
.pm-newsletter {
  background: var(--pm-navy);
  color: var(--pm-white);
  text-align: center;
  padding: 60px 0;
}
.pm-newsletter h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pm-newsletter p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 25px;
}
.pm-newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}
.pm-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 4px;
  border: none;
  font-size: 15px;
}
.pm-newsletter-form button {
  background: var(--pm-blue) !important;
  padding: 14px 28px !important;
  font-size: 14px;
}
.pm-newsletter-form button:hover {
  background: var(--pm-blue-hover) !important;
}
@media (max-width: 480px) {
  .pm-newsletter-form { flex-direction: column; }
}

/* === Footer === */
.site-footer {
  background: var(--pm-navy) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 50px 0 20px !important;
}
.site-footer a {
  color: rgba(255,255,255,0.7) !important;
}
.site-footer a:hover {
  color: var(--pm-white) !important;
}
.site-footer .widget-title {
  color: var(--pm-white) !important;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-info {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding-top: 20px !important;
}

/* === Layout Container === */
.pm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Misc === */
.pm-bg-gray { background: var(--pm-gray); }
.storefront-breadcrumb { display: none; }
.page-template-front-page .site-main { margin-bottom: 0; }
.hentry { margin: 0; }
