/*
Theme Name: Sekhar Super Market
Theme URI: https://example.com/sekhar-super-market
Author: Sekhar Super Market
Author URI: https://example.com
Description: A vibrant, fully editable WordPress block theme built around the Sekhar Super Market brand identity — Sekhar Red + Market Blue + Logo Rainbow accents. First-class WooCommerce + Razorpay support. Edit every page, header and footer visually with the Gutenberg block editor — no code required.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sekhar
Tags: full-site-editing, block-patterns, e-commerce, woocommerce, one-column, two-columns, block-styles, custom-colors, custom-menu, editor-style, featured-images, rtl-language-support, theme-options, translation-ready
*/

/* Theme-wide augmentations that theme.json can't express.
   Design tokens (colors, fonts, spacing) live in theme.json — edit them there. */

/* ---------- Floating WhatsApp chat button ---------- */
.sekhar-wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  z-index: 150;
  text-decoration: none;
  transition: transform 0.25s;
}
.sekhar-wa-float:hover { transform: scale(1.08); color: #ffffff; }
.sekhar-wa-float svg { width: 30px; height: 30px; }

/* ---------- Announcement bar (playful rainbow) ---------- */
.sekhar-announcement {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 16%, #facc15 33%, #22c55e 50%, #06b6d4 66%, #2563eb 83%, #a855f7 100%);
  background-size: 200% 100%;
  animation: sekharSlideGradient 14s linear infinite;
  color: #ffffff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
@keyframes sekharSlideGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.sekhar-announcement strong { color: #fff700; }
.sekhar-announcement .sk-dot { opacity: .65; margin: 0 0.55rem; }

/* ---------- Brand logo image in header / footer ---------- */
.sekhar-logo-img {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}
.sekhar-logo-img-sm {
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
}
.sekhar-logo-img-footer {
  max-height: 72px;
  width: auto;
  background: white;
  padding: .4rem .8rem;
  border-radius: 12px;
  display: block;
}

/* ---------- WhatsApp Channel button ---------- */
.sekhar-btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s;
  text-decoration: none;
}
.sekhar-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
}

/* ---------- WooCommerce small polish (uses theme tokens) ---------- */
.woocommerce ul.products li.product .button {
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--wp--preset--color--primary-dark);
}
.woocommerce span.onsale {
  background: var(--wp--preset--color--primary);
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--wp--preset--color--primary);
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--wp--preset--color--primary);
}

/* "Add to cart" success notice uses blue (secondary) */
.woocommerce-message {
  border-top-color: var(--wp--preset--color--secondary) !important;
}
.woocommerce-message::before {
  color: var(--wp--preset--color--secondary) !important;
}

/* Accordion summary marker for FAQ details blocks */
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--wp--preset--color--primary);
}
details[open] summary::after { content: '–'; }

/* Footer link colors should pop on dark navy */
.wp-block-template-part .has-text-color a:hover,
.wp-block-template-part footer a:hover {
  color: var(--wp--preset--color--tertiary) !important;
}
