/*
Theme Name: Scary Halloween Child
Theme URI: http://donutween.com
Description: Child theme for Scary Halloween
Author: Alexiss
Author URI: http://donutween.com
Template: scary-halloween
Version: 1.0.0
*/

/* =Theme customization starts here */
/* === RESET & BASE TYPOGRAPHY === */
body {
  font-family: "Montserrat", sans-serif !important;
  color: #ddd !important;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
  line-height: 1.6 !important;
  transition: background 0.5s ease;
}

h1, h2, h3, h4 {
  font-family: "Creepster", cursive !important;
  color: #E3652D !important;
  margin-bottom: 0.5em !important;
  text-shadow: 2px 2px 5px #000;
  animation: glow 2.5s infinite;
}

a {
  color: #E3652D !important;
  text-decoration: none !important;
  transition: color 0.3s ease, transform 0.2s ease;
}
a:hover {
  color: #fff !important;
  transform: scale(1.05);
}

/* Force correct cursor */
.woocommerce div.product form.cart select,
.woocommerce div.product form.cart input,
.woocommerce div.product form.cart button {
  cursor: pointer !important;
}

/* === FIX PRODUCT GRID SHIFT === */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
  content: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === PRODUCT GRID === */
.woocommerce ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 2rem !important;
  margin: 2rem auto !important;
  padding: 0 !important;
  list-style: none !important;
}

/* === PRODUCT CARD === */
.woocommerce ul.products li.product {
  flex: 1 1 300px !important; /* responsive width */
  max-width: 300px !important;
  background: rgba(0,0,0,0.75) !important;
  border: 2px solid #E3652D !important;
  border-radius: 16px !important;
  padding: 0.8rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px rgba(227, 101, 45, 0.5);
  border-color: #ff7a33 !important;
}

/* === PRODUCT IMAGE === */
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* === PRODUCT TEXT === */
.woocommerce ul.products li.product h2 {
  font-family: "Creepster", cursive !important;
  color: #fff !important;
  font-size: 18px !important;
  margin: 0.3rem 0 !important;
  line-height: 1.2 !important;
  word-break: break-word;
}
.woocommerce ul.products li.product .price {
  color: #E3652D !important;
  font-weight: bold !important;
  font-size: 15px !important;
  margin-bottom: 0.8rem !important;
}

/* === PRODUCT BUTTON === */
.woocommerce ul.products li.product .button {
  cursor: pointer !important;
  display: inline-block !important;
  background: #E3652D !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  transition: background 0.3s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product .button:hover {
  background: #ff7a33 !important;
  transform: scale(1.1) rotate(-1deg);
}

/* === VARIATION DROPDOWN === */
.woocommerce div.product form.cart .variations select {
  cursor: pointer !important;
  background: #111;
  color: #E3652D;
  border: 2px solid #E3652D;
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.3s ease;
}
.woocommerce div.product form.cart .variations select:focus {
  background: #E3652D;
  color: #fff;
  border-color: #ff7a33;
  outline: none;
}
.woocommerce div.product form.cart .variations select option:disabled {
  color: #666 !important;
  background: #222 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* === NAVBAR === */
.home-page-header,
.main-header {
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #E3652D !important;
  padding: 1rem 2rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  transition: background 0.3s ease, padding 0.3s ease;
}
.sticky-header .main-header {
  padding: 0.5rem 2rem !important;
  background: rgba(0,0,0,0.95) !important;
}
.main-navigation {
  display: flex !important;
  justify-content: center !important;
  gap: 2rem !important;
}

/* Nav links styled as "platforms" */
.main-navigation a {
  font-family: "Creepster", cursive;
  font-size: 26px; /* Bigger spooky text */
  color: #E3652D;
  text-transform: uppercase;
  padding: 1rem 1.8rem; /* More padding for platform feel */
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #E3652D;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 4px 0 #000; /* platform base shadow */
  transition: 
    transform 0.2s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.main-navigation a:hover {
  color: #fff;
  background: #E3652D;
  transform: scale(1.15) rotate(-2deg) translateY(-4px);
  border-color: #ff7a33;
  box-shadow: 
    0 8px 15px rgba(227, 101, 45, 0.7), /* glow shadow */
    0 6px 0 #000; /* deeper platform shadow */
}


/* === FOOTER === */
.site-footer {
  background: #000 !important;
  color: #bbb !important;
  text-align: center !important;
  padding: 2rem !important;
  font-size: 14px !important;
  border-top: 2px solid #E3652D !important;
  transition: background 0.3s ease;
}
.site-footer a {
  color: #E3652D !important;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: #fff !important;
}

/* === ANIMATIONS === */
@keyframes glow {
  0% { text-shadow: 0 0 5px #E3652D; }
  50% { text-shadow: 0 0 20px #ff7a33; }
  100% { text-shadow: 0 0 5px #E3652D; }
}

/* Social Icons - Default black, hover orange */
.topbar-social-icon .custom-social-icons li a i {
    color: #000 !important;
    transition: color 0.3s ease;
}

.topbar-social-icon .custom-social-icons li a:hover i {
    color: #E3652D !important;
}

/* Responsive Navigation - Hamburger Menu */
@media (max-width: 991px) {
    .header-sec-top {
        display: none; /* Hide desktop nav */
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: #000;
        text-align: right;
    }

    .mobile-menu {
        display: none;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 1rem;
    }

    .mobile-menu ul li {
        margin: 0.5rem 0;
    }

    .mobile-menu ul li a {
        color: #000 !important;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-menu ul li a:hover {
        color: #E3652D !important;
    }
}
.about-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.about-popup-content {
  background: #fff;
  color: #000;
  max-width: 500px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.about-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.about-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.about-popup-content {
  background: #111;
  color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}
.about-close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
/* === LOADING SCREEN === */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  font-size: 60px;
  color: #E3652D;
  text-align: center;
  animation: pulse 2s infinite;
}

.loader p {
  margin-top: 20px;
  font-family: "Creepster", cursive;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 10px #E3652D;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 10px #E3652D; }
  50% { transform: scale(1.2); text-shadow: 0 0 30px #ff7a33; }
}
/* Donutween Child Theme Styles */
.donutween-pricing-selector {
    margin: 25px 0;
    padding: 20px;
    border: 3px solid #ff6600;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;
}
.donutween-pricing-selector h3 {
    margin: 0 0 15px 0;
    color: #ff6600;
    font-size: 22px;
    text-align: center;
}
.pricing-options {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}
.pricing-option {
    display: block;
    padding: 15px;
    border: 2px solid #555;
    border-radius: 8px;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pricing-option.selected {
    border-color: #ffcc00;
    background: rgba(255,204,0,0.1);
    box-shadow: 0 0 10px rgba(255,204,0,0.3);
}
.pricing-option:hover {
    border-color: #ffcc00;
    background: rgba(255,204,0,0.05);
    transform: translateY(-2px);
}
.pricing-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}
.pricing-option strong {
    font-size: 18px;
}
.pricing-option span {
    color: #ccc;
    font-size: 14px;
}
.pricing-option small {
    color: #ff6600;
}
.pricing-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #444;
    padding-top: 15px;
}

.donutween-product-offers {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    color: #fff;
    border: 2px solid #ff6600;
}
.donutween-product-offers h4 {
    color: #ff6600;
    margin: 0 0 15px 0;
    font-size: 18px;
}
.offer-grid {
    display: grid;
    gap: 15px;
}
.offer-item {
    padding: 12px;
    background: #333;
    border-radius: 8px;
}
.offer-item strong {
    color: #28a745;
}
.offer-item:nth-child(2) strong {
    color: #ffcc00;
}
.offer-item small {
    color: #ccc;
}
.donutween-product-offers p {
    margin: 15px 0 0 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.donut-promo-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.donut-promo-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #ff6600;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.donut-promo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.donut-promo-card {
    flex: 1 1 220px;
    background: #333;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ff6600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.donut-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}
.donut-promo-card h3 {
    margin-bottom: 10px;
    color: #ffcc00;
    font-size: 20px;
}
.donut-promo-card p {
    margin: 5px 0;
    font-size: 16px;
}
.donut-promo-card .limit {
    font-size: 14px;
    color: #ccc;
    margin-top: 10px;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease;
}
#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader {
    text-align: center;
    color: #fff;
}
.loader .pumpkin {
    font-size: 50px;
    animation: spin 2s linear infinite;
}
.loader p {
    font-size: 18px;
    color: #ff6600;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#donutween-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
#donutween-popup {
    background: #111;
    color: #fff;
    padding: 18px;
    border-radius: 10px;
    max-width: 420px;
    width: 94%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
    overflow: auto;
    max-height: 80vh;
}
#donutween-popup-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
#donutween-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}
#donutween-mini-cart .woocommerce-mini-cart-item img {
    max-width: 60px;
    margin-right: 10px;
}
.qty-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 2px 6px;
    margin: 0 3px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
}
@media (max-width: 480px) {
    #donutween-popup {
        max-width: 96%;
        padding: 14px;
    }
}

.donutween-debug {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 99999;
}
.donutween-pricing-selector {
    margin: 20px 0;
    padding: 15px;
    background: #fff5e6;
    border-radius: 8px;
}
.pricing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.pricing-option {
    flex: 1 1 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
.pricing-option.selected {
    border-color: #ff6200;
    background: #fff5e6;
}
.pricing-instruction {
    color: #ff6200;
    font-weight: bold;
}
.donutween-category-grid ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.donutween-category-grid li.product-category {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.donutween-category-grid li.product-category:hover {
  transform: translateY(-5px);
}

.donutween-category-grid li.product-category img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.donutween-category-grid .woocommerce-loop-category__title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  margin: 0;
  font-size: 1.5em;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.5);
}