/*
Theme Name: SurTaal Music Store - Ultra Luxury Edition
Theme URI: https://example.com/soundwave
Author: AI Theme Architect
Author URI: https://example.com
Description: Premium modern musical instruments WordPress theme with clean white product showcase cards, audio demos, custom menu hierarchy, and built-in interactive cart.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: soundwave
*/

:root {
  --sw-primary: #b45309;       /* Teakwood Gold/Amber */
  --sw-primary-hover: #92400e;
  --sw-accent: #d97706;

  /* Clean White & Light Backgrounds */
  --sw-light-bg: #ffffff;
  --sw-light-bg-alt: #f8f6f2;  /* Soft Warm Linen */
  --sw-light-card: #ffffff;
  --sw-light-border: #e8e2d8;
  --sw-light-text: #1c1917;    /* Charcoal Black */
  --sw-light-muted: #78716c;

  /* Rich Wood Brown (Header & Footer) */
  --sw-dark-bg: #1f140e;
  --sw-dark-card: #2c1c14;
  --sw-dark-border: #442d20;
  --sw-dark-text: #fef3c7;
  --sw-dark-muted: #d1b49f;

  /* Typography */
  --sw-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --sw-radius-sm: 8px;
  --sw-radius-md: 14px;
  --sw-radius-lg: 20px;
  --sw-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.08);
  --sw-shadow-hover: 0 18px 40px -10px rgba(180, 83, 9, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sw-font-body);
  background-color: var(--sw-light-bg-alt);
  color: var(--sw-light-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= 1. HEADER ================= */
.sw-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(31, 20, 14, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sw-dark-border);
}

.sw-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.sw-logo {
  font-family: var(--sw-font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.sw-logo span {
  color: #f59e0b;
}

.sw-nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.sw-nav-menu li {
  position: relative;
}

.sw-nav-menu a {
  font-weight: 600;
  color: var(--sw-dark-muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.sw-nav-menu a:hover,
.sw-nav-menu li:hover > a {
  color: #f59e0b;
}

.sw-nav-menu .has-dropdown .dropdown-icon {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}

.sw-nav-menu .has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.sw-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--sw-dark-card);
  border: 1px solid var(--sw-dark-border);
  border-radius: var(--sw-radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.sw-nav-menu li.has-dropdown:hover .sw-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sw-dropdown-menu li {
  width: 100%;
}

.sw-dropdown-menu a {
  display: block;
  padding: 11px 22px;
  color: var(--sw-dark-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.sw-dropdown-menu a:hover {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  padding-left: 26px;
}

.sw-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sw-cart-btn {
  background: var(--sw-dark-card);
  border: 1px solid var(--sw-dark-border);
  padding: 10px 22px;
  border-radius: var(--sw-radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sw-dark-text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sw-cart-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-1px);
}

.sw-cart-count-badge {
  background: #f59e0b;
  color: #1c1917;
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ================= 2. HERO SECTION ================= */
.sw-hero {
  position: relative;
  padding: 90px 0 85px;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.25) 0%, transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(194, 65, 12, 0.2) 0%, transparent 45%),
              var(--sw-dark-bg);
  color: var(--sw-dark-text);
  border-bottom: 1px solid var(--sw-dark-border);
}

.sw-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.sw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.sw-hero-title {
  font-family: var(--sw-font-heading);
  font-size: 3.4rem;
  line-height: 1.14;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.sw-hero-title span {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-hero-desc {
  font-size: 1.12rem;
  color: var(--sw-dark-muted);
  margin-bottom: 34px;
  max-width: 520px;
}

.sw-hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--sw-radius-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(180, 83, 9, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(180, 83, 9, 0.7);
}

.btn-secondary {
  background: var(--sw-dark-card);
  border: 1px solid var(--sw-dark-border);
  color: var(--sw-dark-text);
  padding: 14px 28px;
  border-radius: var(--sw-radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  border-color: #f59e0b;
  background: #37231a;
}

/* Spotlight Card in Hero */
.sw-hero-showcase {
  background: var(--sw-dark-card);
  border: 1px solid var(--sw-dark-border);
  border-radius: var(--sw-radius-lg);
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  position: relative;
}

.sw-showcase-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #d97706;
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sw-hero-showcase img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* ================= 3. SPECIALIZED CATEGORY CARDS ================= */
.sw-categories-section {
  padding: 85px 0 60px;
  background: #ffffff;
}

.sw-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.sw-section-subtitle {
  color: var(--sw-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

.sw-section-title {
  font-family: var(--sw-font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sw-light-text);
  margin-top: 8px;
}

.sw-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.sw-cat-card {
  background: #ffffff;
  border: 2px solid var(--sw-light-border);
  border-radius: var(--sw-radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sw-cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--sw-primary);
  box-shadow: var(--sw-shadow-hover);
}

.sw-cat-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.sw-cat-title {
  font-family: var(--sw-font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sw-light-text);
  margin-bottom: 8px;
}

.sw-cat-count {
  color: var(--sw-light-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

/* ================= 4. PREMIUM ITEM CARDS (Featured Products) ================= */
.sw-featured-section {
  padding: 70px 0 120px;
  background: var(--sw-light-bg-alt);
  border-top: 1px solid var(--sw-light-border);
}

.sw-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Stunning Item Card */
.sw-product-card {
  background: #ffffff;
  border: 1px solid var(--sw-light-border);
  border-radius: var(--sw-radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--sw-shadow);
  position: relative;
}

.sw-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--sw-primary);
  box-shadow: var(--sw-shadow-hover);
}

.sw-product-thumb {
  border-radius: var(--sw-radius-sm);
  background: #f4eee7;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

.sw-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sw-product-card:hover .sw-product-thumb img {
  transform: scale(1.04);
}

.sw-sound-preview-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(31, 20, 14, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sw-dark-border);
  color: #fff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sw-sound-preview-btn:hover {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
}

.sw-product-category {
  font-size: 0.8rem;
  color: var(--sw-primary);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.sw-product-title {
  font-family: var(--sw-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sw-light-text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.sw-product-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.78rem;
}

.sw-spec-tag {
  background: #f4eee7;
  color: #57534e;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid #e5ded5;
  font-weight: 600;
}

.sw-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--sw-light-border);
}

.sw-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1c1917;
}

.sw-add-cart-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--sw-radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw-add-cart-btn:hover {
  background: #92400e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

/* ================= 5. SLIDE-OUT CART DRAWER ================= */
.sw-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sw-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sw-cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--sw-light-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sw-light-text);
}

.sw-cart-drawer.open {
  right: 0;
}

.sw-cart-drawer-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--sw-light-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fcfbf9;
}

.sw-cart-drawer-header h3 {
  font-family: var(--sw-font-heading);
  font-size: 1.3rem;
  color: #1c1917;
}

.sw-close-btn {
  background: transparent;
  border: none;
  color: var(--sw-light-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.sw-close-btn:hover {
  color: var(--sw-primary);
}

.sw-cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

.sw-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fdfbf7;
  border: 1px solid var(--sw-light-border);
  border-radius: var(--sw-radius-sm);
  padding: 12px;
}

.sw-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.sw-cart-item-details {
  flex: 1;
}

.sw-cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1c1917;
  margin-bottom: 4px;
}

.sw-cart-item-price {
  color: var(--sw-primary);
  font-weight: 800;
  font-size: 0.9rem;
}

.sw-cart-item-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 4px 6px;
}

.sw-cart-empty-message {
  text-align: center;
  color: var(--sw-light-muted);
  margin-top: 60px;
  font-size: 1rem;
}

.sw-cart-drawer-footer {
  padding: 22px 20px;
  border-top: 1px solid var(--sw-light-border);
  background: #fcfbf9;
}

.sw-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.sw-cart-subtotal-price {
  color: var(--sw-primary);
  font-size: 1.4rem;
}

/* Toast */
.sw-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #ffffff;
  border: 1px solid var(--sw-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 14px 22px;
  border-radius: var(--sw-radius-md);
  color: #1c1917;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.sw-toast-icon {
  background: var(--sw-primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Audio Dock */
.sw-audio-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 20, 14, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sw-dark-border);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  padding: 12px 26px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  color: #fff;
}

.sw-audio-bar.hidden {
  display: none;
}

/* ================= 6. FOOTER ================= */
.sw-footer {
  background: var(--sw-dark-bg);
  border-top: 1px solid var(--sw-dark-border);
  padding: 70px 0 30px;
  color: var(--sw-dark-text);
}

.sw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.sw-footer-col h4 {
  font-family: var(--sw-font-heading);
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #fff;
}

.sw-footer-col ul {
  list-style: none;
}

.sw-footer-col li {
  margin-bottom: 10px;
}

.sw-footer-col a {
  color: var(--sw-dark-muted);
  font-size: 0.92rem;
}

.sw-footer-col a:hover {
  color: #f59e0b;
}

.sw-footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sw-dark-muted);
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .sw-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sw-hero-desc {
    margin: 0 auto 30px;
  }
  .sw-hero-btns {
    justify-content: center;
  }
  .sw-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sw-nav-menu ul {
    display: none;
  }
  .sw-hero-title {
    font-size: 2.5rem;
  }
  .sw-footer-grid {
    grid-template-columns: 1fr;
  }
}
