 /* ============================
   Body Styling
   ============================ */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important; /* prevent horizontal scroll */
}

header, .dg-header, .site-header {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.container, .site-container, .wrapper {
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dg-header .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

header, .dg-header, .site-header {
  margin-top: 0 !important;
  top: 0 !important;
  position: relative;
}

/* ===============================
   FIX: Category count showing in header (mobile)
   =============================== */
@media screen and (max-width: 782px) {
    .woocommerce ul.products li.product-category .count {
        position: static !important;
        z-index: 1 !important;
    }

    header, .site-header, .dg-header {
        position: relative;
        z-index: 9999 !important;
    }

    .woocommerce ul.products li.product-category {
        position: relative;
        z-index: 0 !important;
    }
}

body {
  background:black;
  color: #fff;
}

/* ============================
   WooCommerce Products - Keep Default
   ============================ */
.woocommerce ul.products li.product {
    width: auto !important;
}

/* ============================
   Responsive Adjustments
   ============================ */
@media screen and (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
        margin:10px;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin:10px;
    }
}

/* ============================
   WooCommerce Product Buttons
   ============================ */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
    background: #222;
    color: #fff;
    border: 2px solid goldenrod;
    padding: 8px 14px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .button:hover {
    background: goldenrod !important;
    color: #222 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.woocommerce ul.products li.product a.button:active,
.woocommerce ul.products li.product .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

p {
  color:black;
  background:black;
}

.category-back-arrow .back-to-shop-arrow {
    font-size: 24px;
    color: goldenrod;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-back-arrow .back-to-shop-arrow:hover {
    color: #fff;
}

/* ===============================
   FIX: Single product in category (no center align)
   =============================== */
.woocommerce ul.products li.product:first-child:last-child {
  max-width: 320px !important;
  margin: 0 !important;
  display: inline-block !important;
}

.dg-content p {
  color:white;
}

/* =======================================
   UNIVERSAL AFFILIATE FORMS STYLING
   ======================================= */
[class*="Affiliates"] form,
.pure-form,
.dg-affiliate {
  max-width: 700px;
  margin: 50px auto;
  background: #111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  box-sizing: border-box;
}

[class*="Affiliates"] h2,
.dg-affiliate h2 {
  text-align: center;
  color: goldenrod;
  margin-bottom: 25px;
  font-size: 26px;
  letter-spacing: 1px;
}

[class*="Affiliates"] input[type="text"],
[class*="Affiliates"] input[type="email"],
[class*="Affiliates"] input[type="password"],
[class*="Affiliates"] input[type="number"],
[class*="Affiliates"] select,
[class*="Affiliates"] textarea,
.pure-form-stacked input,
.pure-form-stacked select,
.pure-form-stacked textarea {
  width: 100% !important;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

[class*="Affiliates"] label,
.pure-form-stacked label {
  color: #ccc;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

[class*="Affiliates"] input[type="submit"],
[class*="Affiliates"] button,
.dg-affiliate input[type="submit"] {
  background: goldenrod;
  color: #000;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

[class*="Affiliates"] input[type="submit"]:hover,
[class*="Affiliates"] button:hover {
  background: #ffce45;
  transform: translateY(-2px);
}

[class*="Affiliates"] table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: #fff;
}

[class*="Affiliates"] table th,
[class*="Affiliates"] table td {
  border: 1px solid #444;
  padding: 10px 15px;
  text-align: left;
}

[class*="Affiliates"] table th {
  background: goldenrod;
  color: #000;
}

[class*="Affiliates"] table tr:nth-child(even) {
  background: #222;
}

@media (max-width: 600px) {
  [class*="Affiliates"] form,
  .dg-affiliate {
    max-width: 95%;
    padding: 20px;
  }
}

/* Dropdowns */
select,
.pure-form-stacked select {
  color: #fff !important;
  background-color: #222 !important;
  border: 1px solid goldenrod;
  border-radius: 5px;
  padding: 8px;
}

select option[value=""],
select option:disabled,
select option:first-child {
  color: #fff !important;
}

select:focus {
  border-color: #daa520;
  outline: none;
  box-shadow: 0 0 5px rgba(218, 165, 32, 0.4);
}

.woocommerce div.product form.cart .variations select {
  color: #fff !important;
  background-color: #222 !important;
}

/* Header banner */
.dg-header-banner {
  width: 100%;
  overflow: hidden;
}

.dg-header-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dg-header-banner {
  margin-top: 0;
}

/* ✅ Hide categories globally */
.woocommerce ul.products li.product-category {
  display: none !important;
}

/* ✅ Hide on Shop + Home */
body.woocommerce-shop ul.products li.product-category,
body.home ul.products li.product-category {
  display: none !important;
}

/* ✅ Show categories only on page ID 4713 */
.page-id-4713 ul.products li.product-category {
  display: block !important;
}

/* ✅ Show category images only on custom categories page */
.page-id-4713 ul.products li.product-category a img {
    display: block !important;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 15px #0ff);
}

/* Navigation dropdowns */
@media (max-width: 1024px) {
  .dg-nav .sub-menu {
    display: none !important;
    background: #fff;
  }

  .dg-nav .menu-item-has-children.submenu-open > .sub-menu {
    display: block !important;
  }

  .dg-nav .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 5px;
  }

  .dg-nav .sub-menu li a {
    padding: 12px 20px;
    display: block;
    color: black;
    background: #f8f8f8;
  }
}

.wpam-daterange-selection {
  color:white;
}

.pure-table {
  color:#9ddd34;
}

.home-categories h2 {
  display:none;
}

.dg-content {
  margin-left:10px;
  margin-right:10px;
}

.container dg-page h2 {
  text-align: center;
}

.footer-bottom p {
  color:white;
}

#main-content.container p {
  color:white;
}
/* ✅ Restore grid layout for WooCommerce category and product lists */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
}

/* ✅ Ensure product/category cards stay consistent */
ul.products li.product,
ul.products li.product-category {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Hover effect for cards */
ul.products li.product:hover,
ul.products li.product-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ✅ Image alignment fix */
ul.products li.product a img,
ul.products li.product-category a img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ✅ Text spacing */
ul.products li.product h2,
ul.products li.product-category h2 {
  padding: 15px;
  font-size: 18px;
  text-align: center;
}
/* ✅ Remove ::before pseudo-elements from product lists and categories */
ul.products::before,
ul.products li.product-category::before {
  content: none !important;
  display: none !important;
}

/* ✅ (Optional) Remove ::after too, if it exists */
ul.products::after,
ul.products li.product-category::after {
  content: none !important;
  display: none !important;
}
.woocommerce-MyAccount-content p{
background:none;}

