/*
Theme Name: SCC Standalone
Theme URI: https://superceramiccoating.com
Author: Creative Sparks
Author URI: https://creativesparks.in
Description: Standalone WooCommerce theme for Super Ceramic Coating. Includes custom Cart, Checkout, and Home page designs with no parent theme dependency.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scc-standalone
Tags: woocommerce, custom-logo, custom-menu, e-commerce
WooCommerce tested up to: 9.8
*/

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

:root {
  --scc-red: #D02E27;
  --scc-red-hover: #b82520;
  --scc-black: #111111;
  --scc-charcoal: #1a1a1a;
  --scc-text: #333333;
  --scc-muted: #666666;
  --scc-border: #e5e5e5;
  --scc-bg: #ffffff;
  --scc-content-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--scc-text);
  background: var(--scc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--scc-black);
  text-decoration: none;
}

a:hover {
  color: var(--scc-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--scc-black);
}

h1 {
  font-size: 75px !important;
}

.scc-video-play,
.scc-play-button,
.video-play-button,
.play-button,
.wp-block-video .play-button,
[class*="__play"],
[class*="-play"] {
  color: transparent;
}

.scc-video-play,
.scc-play-button,
.video-play-button,
.play-button {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scc-video-play::after,
.scc-play-button::after,
.video-play-button::after,
.play-button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   Layout
   ========================================================================== */

.scc-container {
  max-width: var(--scc-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-content {
  min-height: 60vh;
}

/* ==========================================================================
   Header
   ========================================================================== */

.scc-site-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.scc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

/* Brand / Logo */
.scc-header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.scc-header-brand img,
.scc-header-brand .custom-logo {
  max-height: 50px;
  width: auto;
}

.scc-header-brand .site-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--scc-black);
}

.scc-header-brand .site-title a {
  color: inherit;
}

/* Navigation */
.scc-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.scc-header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.scc-header-nav ul li {
  position: relative;
}

.scc-header-nav ul li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--scc-black);
  transition: color 0.2s;
}

.scc-header-nav ul li a:hover,
.scc-header-nav ul li.current-menu-item a {
  color: var(--scc-red);
}

/* Sub-menus */
.scc-header-nav ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  flex-direction: column;
  gap: 0;
}

.scc-header-nav ul li:hover > ul.sub-menu {
  display: flex;
}

.scc-header-nav ul li ul.sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Header actions (cart, etc.) */
.scc-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.scc-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scc-black);
  border: 1px solid #e5e5e5;
  transition: border-color 0.2s;
}

.scc-header-cart:hover {
  border-color: var(--scc-black);
  color: var(--scc-black);
}

.scc-header-cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--scc-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* Mobile menu toggle */
.scc-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--scc-black);
}

@media (max-width: 900px) {
  .scc-menu-toggle {
    display: inline-flex;
  }

  .scc-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    z-index: 999;
  }

  .scc-header-nav.is-open {
    display: block;
  }

  .scc-header-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .scc-header-nav ul li {
    width: 100%;
  }

  .scc-header-nav ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .scc-header-nav ul li ul.sub-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    display: block;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.scc-site-footer {
  margin-top: 60px;
  padding: 40px 0 24px;
  background: var(--scc-black);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.scc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.scc-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.scc-footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scc-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scc-footer-links a:hover {
  color: #fff;
}

/* ==========================================================================
   WooCommerce - General
   ========================================================================== */

.woocommerce-page .site-content,
.woocommerce .site-content {
  background: transparent;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 16px 0;
  font-size: 12px;
  color: var(--scc-muted);
}

/* Hide Woo page title on cart/checkout (our templates have their own) */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title {
  display: none !important;
}

/* ==========================================================================
   Content & Page
   ========================================================================== */

.entry-content {
  max-width: var(--scc-content-width);
  margin: 0 auto;
  padding: 24px;
}

.entry-header {
  max-width: var(--scc-content-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.entry-header .entry-title {
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Safety pill (product pages)
   ========================================================================== */

.mh-safety-oneline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mh-safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #5d4037;
}

/* ==========================================================================
   Checkout footer
   ========================================================================== */

.scc-co-checkout-footer {
  padding: 16px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scc-muted);
}

.scc-co-checkout-footer__inner {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scc-co-checkout-footer__sep {
  color: #ccc;
}

/* ==========================================================================
   Checkout progress strip
   ========================================================================== */

.scc-co-progress {
  max-width: var(--scc-content-width);
  margin: 0 auto 24px;
  padding: 0 24px;
}

.scc-co-progress__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scc-co-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}

.scc-co-progress__step + .scc-co-progress__step::before {
  content: '—';
  margin-right: 8px;
  color: #ccc;
}

.scc-co-progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ddd;
}

.scc-co-progress__step--done {
  color: #888;
}

.scc-co-progress__step--done .scc-co-progress__dot {
  background: #888;
}

.scc-co-progress__step--active {
  color: var(--scc-red);
}

.scc-co-progress__step--active .scc-co-progress__dot {
  background: var(--scc-red);
}

/* ==========================================================================
   Mobile summary (checkout)
   ========================================================================== */

.scc-co-mobile-summary {
  display: none;
}

@media (max-width: 1024px) {
  .scc-co-mobile-summary {
    display: block;
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid #e6e2d3;
  }

  .scc-co-mobile-summary__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: #111;
    text-align: left;
  }

  .scc-co-mobile-summary__title {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 11px;
  }

  .scc-co-mobile-summary__count {
    color: #8c8578;
    font-size: 12px;
  }

  .scc-co-mobile-summary__total {
    margin-left: auto;
    font-weight: 800;
    font-size: 14px;
  }

  .scc-co-mobile-summary__chev {
    color: #8c8578;
    transition: transform 0.2s;
  }

  .scc-co-mobile-summary[aria-expanded="true"] .scc-co-mobile-summary__chev {
    transform: rotate(180deg);
  }

  .scc-co-mobile-summary__body {
    padding: 0 18px 18px;
    border-top: 1px solid #efece0;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

*:focus-visible {
  outline: 2px solid var(--scc-red);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Builder/homepage pages should not be boxed by the default content wrapper. */
body.elementor-page .entry-content,
body.home .entry-content,
.scc-front-page {
  max-width: none;
  padding: 0;
}

/* ===========================================================
 * Inline SVG sizing fix (May 2026 cleanup) — fixes oversized
 * FontAwesome SVGs pasted into AI-generated post content.
 * =========================================================== */
.entry-content svg:not([width]):not([height]),
article svg:not([width]):not([height]) {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
  fill: currentColor;
}
