/*
Theme Name: Eli Sweet Café
Theme URI: https://elisweetcafe.com
Author: Eli Sweet Café
Author URI: https://elisweetcafe.com
Description: Custom WordPress theme for Eli Sweet Café - Handcrafted custom cakes and artisan desserts. Fully integrated with WooCommerce for e-commerce functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eli-sweet-cafe
Tags: woocommerce, e-commerce, bakery, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Typography
2.0 - Brand Colors
3.0 - Layout & Structure
4.0 - Header & Navigation
5.0 - Hero Section
6.0 - Buttons & CTAs
7.0 - WooCommerce Styling
8.0 - Forms
9.0 - Footer
10.0 - Responsive Design
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Typography
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #6B5E5E;
  background-color: #F5EBE0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: #2F5233;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/*--------------------------------------------------------------
2.0 - Brand Colors
--------------------------------------------------------------*/
:root {
  --color-forest: #2F5233;
  --color-forest-light: #3d6844;
  --color-forest-dark: #1f3722;
  --color-rose: #E8B4B8;
  --color-rose-light: #F4D4D8;
  --color-rose-dark: #d99da2;
  --color-cream: #F5EBE0;
  --color-cream-light: #faf6f1;
  --color-cream-dark: #ebe0d4;
  --color-warmgray: #6B5E5E;
  --color-white: #ffffff;
}

/*--------------------------------------------------------------
3.0 - Layout & Structure
--------------------------------------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-forest);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-warmgray);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/*--------------------------------------------------------------
4.0 - Header & Navigation
--------------------------------------------------------------*/
.site-header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(47, 82, 51, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 50px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.5rem;
  color: var(--color-forest);
  margin: 0;
}

.site-description {
  font-size: 0.75rem;
  color: var(--color-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--color-forest);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.main-navigation a:hover {
  color: var(--color-rose);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-rose);
  transition: width 0.3s;
}

.main-navigation a:hover::after {
  width: 100%;
}

/*--------------------------------------------------------------
5.0 - Hero Section
--------------------------------------------------------------*/
.hero-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-rose-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--color-forest);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-warmgray);
}

/*--------------------------------------------------------------
6.0 - Buttons & CTAs
--------------------------------------------------------------*/
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(47, 82, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-forest);
  border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn-add-to-cart {
  background: var(--color-rose);
  color: var(--color-white);
}

.btn-add-to-cart:hover {
  background: var(--color-rose-dark);
}

/*--------------------------------------------------------------
7.0 - WooCommerce Styling
--------------------------------------------------------------*/

/* Products Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232, 180, 184, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(47, 82, 51, 0.1);
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.25rem;
  color: var(--color-forest);
  margin: 15px 20px 10px;
}

.woocommerce ul.products li.product .price {
  color: var(--color-rose);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 20px 15px;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  background: var(--color-forest);
  color: var(--color-white);
  border: none;
  padding: 12px;
  border-radius: 0;
  font-weight: 600;
}

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

/* Single Product Page */
.woocommerce div.product {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
}

.woocommerce div.product .product_title {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.woocommerce div.product .price {
  color: var(--color-rose);
  font-size: 2rem;
  font-weight: 700;
}

.woocommerce div.product form.cart .button {
  background: var(--color-forest);
  color: var(--color-white);
  padding: 15px 40px;
  border-radius: 50px;
}

.woocommerce div.product form.cart .button:hover {
  background: var(--color-rose);
}

/* Cart Page */
.woocommerce-cart .cart-collaterals {
  background: var(--color-white);
  padding: 30px;
  border-radius: 15px;
}

.woocommerce-cart table.cart {
  background: var(--color-white);
  border-radius: 15px;
}

/* Checkout Page */
.woocommerce-checkout #payment {
  background: var(--color-white);
  border-radius: 15px;
  padding: 30px;
}

.woocommerce #place_order {
  background: var(--color-forest);
  color: var(--color-white);
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
}

.woocommerce #place_order:hover {
  background: var(--color-rose);
}

/* Cart Icon in Header */
.cart-icon {
  position: relative;
  display: inline-block;
  color: var(--color-forest);
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-rose);
  color: var(--color-white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/*--------------------------------------------------------------
8.0 - Forms
--------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-rose-light);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-forest);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-forest);
  font-weight: 500;
}

/*--------------------------------------------------------------
9.0 - Footer
--------------------------------------------------------------*/
.site-footer {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--color-rose);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/*--------------------------------------------------------------
10.0 - Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .site-header .container {
    flex-wrap: wrap;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
