/* =========================================
   PREMIUM TRADITIONAL THEME STYLES
   ========================================= */
:root {
  --pt-dark-green: #06110a;
  --pt-light-green: #0a1f13;
  --pt-gold: #c29a4d;
  --pt-gold-light: #dfba6d;
  --pt-beige: #e5dcc7;
  --pt-cream: #f4efe6;
  --pt-white: #FFFFFF;
  --pt-text-dark: #1b1b1b;
  --pt-text-light: #666666;
  --pt-border: #d4c8b0;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--pt-text-dark);
  background-color: var(--pt-cream);
  background-image: none;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-serif);
}

/* Category Hero Section Typography */
.category-hero-section h1,
.category-hero-section .display-3 {
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
}
.category-hero-section p,
.category-hero-section .lead {
  font-family: var(--font-sans) !important;
}

/* --- HEADER SYSTEM --- */
.pt-top-bar {
  background-color: var(--pt-dark-green);
  color: var(--pt-beige);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}
.pt-top-bar i {
  color: var(--pt-gold);
}

.pt-main-header {
  background-color: var(--pt-cream);
  padding: 15px 0;
  border-bottom: 1px solid var(--pt-border);
}
.pt-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pt-logo img {
  max-height: 80px;
}

.pt-search-bar {
    display: flex;
    align-items: center;
    border: 2px solid var(--pt-gold);
  border-radius: 30px;
  overflow: hidden;
  background: var(--pt-white);
  width: 400px;
  max-width: 100%;
}
.pt-search-bar input {
  border: none;
  padding: 12px 20px;
  width: 100%;
  font-size: 14px;
  outline: none;
  background: transparent;
}
.pt-search-bar button {
  background: var(--pt-dark-green);
  color: var(--pt-white);
  border: none;
  width: 50px;
  height: 45px;
  border-radius: 30px;
  cursor: pointer;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.pt-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pt-text-dark);
}
.pt-action-item .icon {
  font-size: 20px;
  color: var(--pt-dark-green);
}
.pt-action-text span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pt-text-light);
  letter-spacing: 0.5px;
}
.pt-action-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-dark-green);
}

.pt-nav-bar {
  background-color: var(--pt-dark-green);
  position: relative;
  display: flex;
  justify-content: center;
}
.pt-nav-decor {
  color: var(--pt-gold);
  display: flex;
  align-items: center;
  font-size: 20px;
  padding: 0 20px;
}
.pt-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-nav-links > li > a {
  display: block;
  padding: 15px 25px;
  color: var(--pt-white);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.3s;
}
.pt-nav-links > li > a:hover, .pt-nav-links > li > a.active {
    color: var(--pt-beige);
  }
.pt-nav-links > li > a.active {
    border-bottom: 2px solid var(--pt-beige);
  padding-bottom: 13px; /* Compensate for border */
}

/* --- HERO SECTION --- */
.pt-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}
/* Hero gradient removed as requested */
.pt-hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}
.pt-hero-tag {
  color: var(--pt-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pt-hero-title {
  font-family: var(--font-serif);
  color: var(--pt-dark-green);
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.pt-hero-subtitle {
  font-family: 'Brush Script MT', cursive;
  color: var(--pt-gold);
  font-size: 35px;
  margin-bottom: 25px;
}
.pt-hero-desc {
  font-size: 16px;
  color: var(--pt-text-dark);
  line-height: 1.6;
  margin-bottom: 35px;
}
.pt-btn-solid {
  background: var(--pt-dark-green);
  color: var(--pt-white);
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid var(--pt-dark-green);
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}
.pt-btn-solid:hover {
  background: var(--pt-light-green);
  color: var(--pt-white);
}
.pt-btn-outline {
  background: transparent;
  color: var(--pt-dark-green);
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid var(--pt-dark-green);
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-left: 15px;
}
.pt-btn-outline:hover {
  background: var(--pt-dark-green);
  color: var(--pt-white);
}

/* --- FEATURES BAR --- */
.pt-features-bar {
  background: var(--pt-white);
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  padding: 30px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.pt-feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pt-feature-item i {
  font-size: 24px;
  color: var(--pt-dark-green);
}
.pt-feature-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--pt-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- SECTION HEADERS --- */
.pt-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.pt-section-tag {
  color: var(--pt-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 10px;
}
.pt-section-title {
  font-family: var(--font-serif);
  color: var(--pt-dark-green);
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.pt-section-title::before, .pt-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23C29A4D"><path d="M12 2L15 10H22L16 15L18 22L12 17L6 22L8 15L2 10H9L12 2Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* --- CIRCLE CATEGORIES --- */
.pt-categories-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pt-cat-item {
  text-align: center;
  text-decoration: none;
  width: 170px;
  transition: transform 0.3s ease;
}
.pt-cat-item:hover {
  transform: translateY(-8px);
}
.pt-cat-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid var(--pt-gold);
  padding: 8px;
  box-shadow: 0 15px 35px rgba(194, 154, 77, 0.15);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  background: var(--pt-white);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pt-cat-item:hover .pt-cat-circle {
  box-shadow: 0 20px 45px rgba(194, 154, 77, 0.25);
  border-width: 2px;
}
/* We need an inner circle for the image to clip it properly with the padding */
.pt-cat-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pt-cream);
}
.pt-cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}
.pt-cat-item:hover .pt-cat-circle img {
  transform: scale(1.1);
}
.pt-cat-label {
  background: transparent;
  color: var(--pt-dark-green);
  padding: 5px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
  display: block;
  transition: color 0.3s ease;
}
.pt-cat-item:hover .pt-cat-label {
  color: var(--pt-gold);
}

/* --- PRODUCT CARDS (BEST SELLERS) --- */
.pt-product-card {
  background: var(--pt-white);
  border: 1px solid var(--pt-gold);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pt-product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.pt-card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(170, 124, 17, 0.3);
  letter-spacing: 0.5px;
}
.pt-card-img {
  text-align: center;
  margin-bottom: 20px;
  height: 200px;
  width: 100%;
  overflow: hidden;
}
.pt-card-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pt-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pt-card-title {
  font-family: var(--font-serif) !important;
  font-size: 21px;
  font-weight: 700;
  color: var(--pt-dark-green);
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
  line-height: 1.2;
}
.pt-card-rating {
  color: var(--pt-gold);
  font-size: 12px;
  margin-bottom: 15px;
}
.pt-card-rating span {
  color: var(--pt-text-light);
  margin-left: 5px;
}
.pt-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.pt-price-current {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--pt-dark-green);
}
.pt-price-old {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--pt-text-light);
  text-decoration: line-through;
}
.pt-discount {
    background: #0c2b1a !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
  }
.pt-weight-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pt-weight-pill {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  color: #4b5563 !important;
  background-color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  display: inline-block;
  text-align: center;
}
.pt-weight-pill.active {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #111827 !important;
  font-weight: 700 !important;
}
.pt-weight-pill:hover:not(.active) {
  background-color: #fff9ed !important;
  border-color: #C29A4D !important;
  color: #C29A4D !important;
}
.pt-card-actions {
  display: flex;
  gap: 10px;
}
.pt-btn-cart {
  flex: 1;
  background: var(--pt-dark-green);
  color: var(--pt-white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  transition: 0.3s;
  cursor: pointer;
}
.pt-btn-cart:hover {
  background: var(--pt-light-green);
}
.pt-btn-wish {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pt-border);
  background: var(--pt-white);
  color: var(--pt-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.pt-btn-wish:hover {
  border-color: var(--pt-gold);
}

/* --- LEGACY SECTION --- */
.pt-legacy {
  padding: 80px 0;
  border-top: 1px solid var(--pt-border);
  border-bottom: 1px solid var(--pt-border);
}
.pt-legacy-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: 450px;
}
.pt-legacy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-legacy-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.pt-legacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-dark-green);
}
.pt-legacy-list li i {
  color: var(--pt-gold);
}

/* --- TESTIMONIALS --- */
.pt-testimonial-card {
  background: var(--pt-white);
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
}
.pt-test-text {
  font-size: 14px;
  color: var(--pt-text-light);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}
.pt-test-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pt-test-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.pt-test-user h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pt-dark-green);
  margin: 0 0 5px 0;
}
.pt-test-stars {
  color: var(--pt-gold);
  font-size: 10px;
}




/* --- DROPDOWN MENU --- */
.pt-has-dropdown {
  position: relative;
}
.pt-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--pt-white);
  box-shadow: 0 20px 40px rgba(16, 54, 26, 0.1);
  list-style: none;
  padding: 12px 0;
  margin: 15px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border-radius: 12px;
  border-top: 3px solid var(--pt-gold);
}
.pt-has-dropdown:hover .pt-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Invisible hover bridge */
.pt-has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}
.pt-dropdown-menu li {
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.pt-dropdown-menu li:last-child {
  border-bottom: none;
}
.pt-dropdown-menu li a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  color: var(--pt-dark-green);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}
.pt-dropdown-menu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--pt-gold);
  opacity: 0;
  transition: 0.3s;
}
.pt-dropdown-menu li a::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: var(--pt-gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}
.pt-dropdown-menu li a:hover {
  background-color: rgba(194, 154, 77, 0.05);
  color: var(--pt-gold) !important;
  padding-left: 30px;
}
.pt-dropdown-menu li a:hover::before {
  opacity: 1;
}
.pt-dropdown-menu li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}























/* --- CART DRAWER --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cart-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 10001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  right: 0;
}

.cart-item-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 5px;
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 20px;
}
.cart-item-weight {
  display: inline-block;
  font-size: 11px;
  color: #666;
  background: #f1f1f1;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: fit-content;
  background: #fff;
}
.cart-qty-btn {
  background: transparent;
  border: none;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}
.cart-qty-val {
  font-size: 13px;
  font-weight: 600;
  width: 25px;
  text-align: center;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.cart-item-remove {
  background: transparent;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
  position: absolute;
  top: 15px;
  right: 15px;
}
.cart-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Global Border for Product Cards */
.premium-grocery-card {
  border: 1px solid #e5e7eb !important;
}

.pt-card-content { display: flex; flex-direction: column; flex-grow: 1; }


.pt-card-img img { transition: transform 0.4s ease; }
.pt-product-card:hover .pt-card-img img { transform: scale(1.1) !important; }


/* --- GLOBAL CARD STABILITY FIX --- */
.pt-product-card, .pt-fancy-card, .premium-grocery-card,
.card, .product-card, .category-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    transform: none !important;
}

.pt-product-card:hover, .pt-fancy-card:hover, .premium-grocery-card:hover,
.card:hover, .product-card:hover, .category-card:hover {
    transform: none !important;
}

.pt-product-card:active, .pt-fancy-card:active, .premium-grocery-card:active,
.card:active, .product-card:active, .category-card:active {
    transform: none !important;
    top: auto;
    left: auto;
}



.pt-card-img img, .img-wrapper img, .card-image-wrapper-premium img {
    transition: transform 0.4s ease !important;
}

/* Allow ONLY the image to zoom slightly on hover, nothing else moves */
.pt-product-card:hover .pt-card-img img,
.pt-fancy-card:hover .img-wrapper img,
.premium-grocery-card:hover .card-image-wrapper-premium img {
    transform: scale(1.1) !important;
}

.pt-product-card:active .pt-card-img img,
.pt-fancy-card:active .img-wrapper img,
.premium-grocery-card:active .card-image-wrapper-premium img {
    transform: scale(1.1) !important; /* Keep zoomed state, no jump */
}

/* Global Responsive Fixes */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
