/*
Theme Name: Light Shine Decor
Theme URI: https://lightshinedecor.com
Author: Light Shine Decor
Author URI: https://lightshinedecor.com
Description: A premium lighting e-commerce WordPress theme with elegant gallery-style product display, gold accents, and integrated contact inquiry functionality.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lightshine-decor
Tags: custom-logo, custom-menu, featured-images, translation-ready, e-commerce
*/

/* ================================
   CSS Variables / Design Tokens
   ================================ */
:root {
  --color-primary: #FFFFFF;
  --color-secondary: #F5F5F5;
  --color-accent: #B8860B;
  --color-accent-brass: #CD853F;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #666666;
  --color-border: #E5E5E5;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

  --transition-base: 0.2s ease-in-out;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.3s ease-in-out;

  --font-primary: Georgia, 'Times New Roman', serif;
  --font-secondary: Arial, Helvetica, sans-serif;

  --container-max-width: 1280px;
  --header-height: 80px;
  --sidebar-width: 250px;
  --grid-gutter: 24px;
}

/* ================================
   Base Reset
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

h2 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
}

/* ================================
   Layout / Container
   ================================ */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* ================================
   Header
   ================================ */
.header {
  height: var(--header-height);
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-primary);
}

.logo:hover {
  color: var(--color-text-primary);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  padding: var(--spacing-sm) 0;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-item:hover::after,
.nav-item:focus::after {
  width: 100%;
}

.nav-item:hover {
  color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.header-link {
  font-size: 14px;
  color: var(--color-text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px 0;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  height: 500px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  margin-top: var(--header-height);
  padding: var(--spacing-2xl);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
  font-family: var(--font-secondary);
  display: inline-block;
}

.btn-primary:hover {
  background: #333333;
  color: var(--color-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
  font-family: var(--font-secondary);
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--color-text-primary);
  color: var(--color-primary);
}

/* ================================
   Product Grid
   ================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}

.product-card {
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  transition: border-color var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-text-primary);
}

.product-image {
  aspect-ratio: 1:1;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  padding: var(--spacing-md);
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.product-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.product-price .currency {
  font-size: 14px;
}

.quick-shop {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.9);
  color: var(--color-primary);
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity var(--transition-base);
  cursor: pointer;
  border: none;
  width: 100%;
}

.quick-shop:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.product-card:hover .quick-shop {
  opacity: 1;
}

/* ================================
   Categories Grid
   ================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1:1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.7);
  color: var(--color-primary);
  padding: var(--spacing-md);
  text-align: center;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================
   Contact Form Section
   ================================ */
.contact-section {
  background: var(--color-secondary);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-secondary);
  transition: border-color var(--transition-base);
  background: var(--color-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-text-primary);
}

.form-input::placeholder {
  color: var(--color-text-secondary);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand .logo {
  margin-bottom: var(--spacing-md);
  display: block;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 14px;
  max-width: 300px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ================================
   Sidebar
   ================================ */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-widget {
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.sidebar-widget-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

/* ================================
   Single Product Page
   ================================ */
.single-product {
  padding-top: calc(var(--header-height) + var(--spacing-xl));
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.product-gallery-main {
  aspect-ratio: 1:1;
  background: var(--color-secondary);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: var(--spacing-lg) 0;
}

.product-title {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
}

.product-price-single {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.product-variants {
  margin-bottom: var(--spacing-lg);
}

.variant-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.variant-options {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.variant-option {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
}

.variant-option:hover,
.variant-option.active {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: var(--color-primary);
}

/* ================================
   Blog / Archive
   ================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.post-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.post-card-image {
  aspect-ratio: 16:9;
  background: var(--color-secondary);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: var(--spacing-md);
}

.post-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.post-card-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ================================
   WooCommerce Overrides
   ================================ */
.woocommerce ul.products li.product {
  border: 1px solid var(--color-border);
  text-align: center;
  padding: 0;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--color-text-primary);
}

.woocommerce ul.products li.product a img {
  margin: 0;
}

.woocommerce ul.products li.product .button {
  background: var(--color-text-primary);
  color: var(--color-primary);
  border-radius: 0;
  padding: 12px 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--color-accent);
}

/* ================================
   WordPress Core Overrides
   ================================ */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
  .product-grid,
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .categories-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 400px;
    padding: var(--spacing-xl);
  }

  .hero-title {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .product-grid,
  .categories-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }
}