/*
Theme Name: Classic Art Store
Description: Premium WordPress theme untuk toko lukisan online dengan sistem e-commerce custom
Author: Classic Art Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: classic-art-store
Tags: e-commerce, art, gallery, custom-shop, responsive, modern
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography - Updated font sizes */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem; /* All headings now use 1.1rem */
}

/* Simple Checkout Specific Styles */
.simple-checkout-form {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 2rem;
}

.simple-order-summary {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.checkout-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.checkout-buttons .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checkout-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.checkout-buttons .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* WhatsApp button specific styling */
.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

/* Payment info styling */
.payment-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-200);
}

.payment-info h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#bank-info, #cod-info {
  background: var(--accent-50);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Order item styling */
.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent-200);
}

.order-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-item-image {
  width: 60px;
  height: 60px;
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-info {
  flex: 1;
}

.order-item-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.order-item-total {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--secondary-900);
}

/* Summary calculations */
.summary-calculations {
  border-top: 1px solid var(--accent-200);
  padding-top: 1rem;
  margin-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.summary-total {
  border-top: 1px solid var(--accent-200);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.summary-total span:last-child {
  color: var(--primary-500);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Colors */
:root {
  --primary-50: #fefce8;
  --primary-100: #fef3c7;
  --primary-200: #fde68a;
  --primary-300: #fcd34d;
  --primary-400: #fbbf24;
  --primary-500: #D4AF37;
  --primary-600: #d97706;
  --primary-700: #b45309;
  --primary-800: #92400e;
  --primary-900: #78350f;
  
  --secondary-50: #eff6ff;
  --secondary-100: #dbeafe;
  --secondary-200: #bfdbfe;
  --secondary-300: #93c5fd;
  --secondary-400: #60a5fa;
  --secondary-500: #3b82f6;
  --secondary-600: #2563eb;
  --secondary-700: #1d4ed8;
  --secondary-800: #1e40af;
  --secondary-900: #1E3A8A;
  
  --accent-50: #f9fafb;
  --accent-100: #f3f4f6;
  --accent-200: #e5e7eb;
  --accent-300: #d1d5db;
  --accent-400: #9ca3af;
  --accent-500: #6B7280;
  --accent-600: #4b5563;
  --accent-700: #374151;
  --accent-800: #1f2937;
  --accent-900: #111827;
}

/* Header Styles */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--accent-50);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--accent-200);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--accent-600);
}

.header-main {
  padding: 1rem 0;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--secondary-900);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--accent-600);
  margin: 0;
}

/* Navigation - Fixed menu click speed */
.main-navigation {
  background: var(--accent-50);
  border-top: 1px solid var(--accent-200);
}

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

.main-navigation a {
  text-decoration: none;
  color: var(--accent-700);
  font-weight: 500;
  transition: color 0.5s ease; /* Slower transition for menu */
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.main-navigation a:hover {
  color: var(--primary-500);
  background: var(--primary-50);
  transition: all 0.3s ease;
}

/* Search Form */
.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--accent-300);
  border-radius: 9999px;
  outline: none;
  transition: all 0.3s ease;
}

.header-search input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-400);
}

/* Cart Icon */
.header-cart {
  position: relative;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: var(--accent-700);
}

.header-cart:hover {
  background: var(--accent-50);
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--primary-500);
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  min-width: 1.25rem;
  text-align: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--primary-500);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--accent-200);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  justify-content: center;
}

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

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.875rem;
  color: var(--accent-500);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-title a {
  text-decoration: none;
  color: var(--secondary-900);
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: var(--primary-500);
}

.product-artist {
  font-size: 0.875rem;
  color: var(--accent-600);
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary-900);
}

.price-original {
  font-size: 1rem;
  color: var(--accent-500);
  text-decoration: line-through;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--accent-600);
}

.add-to-cart-btn {
  background: var(--primary-500);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: var(--primary-600);
}

/* Cart Page Styles */
.cart-container {
  padding: 2rem 0;
  min-height: 60vh;
}

.cart-item {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.cart-item-artist {
  font-size: 0.875rem;
  color: var(--accent-600);
  margin-bottom: 0.5rem;
}

.cart-item-meta {
  font-size: 0.875rem;
  color: var(--accent-600);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--accent-300);
  border-radius: 0.5rem;
}

.quantity-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background: var(--accent-50);
}

.quantity-input {
  border: none;
  text-align: center;
  width: 60px;
  padding: 0.5rem;
  outline: none;
}

.cart-summary {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-total {
  border-top: 1px solid var(--accent-200);
  padding-top: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Checkout Form */
.checkout-form {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--accent-700);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent-300);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent-300);
  border-radius: 0.5rem;
  outline: none;
  background: white;
  transition: border-color 0.3s ease;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent-300);
  border-radius: 0.5rem;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

/* Footer */
.site-footer {
  background: var(--secondary-900);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--accent-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--accent-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--accent-300);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-500);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Simple checkout responsive */
  .checkout-layout {
    display: block !important;
    gap: 2rem;
  }
  
  .simple-order-summary {
    position: static;
    margin-bottom: 2rem;
  }
  
  .checkout-buttons {
    flex-direction: column;
  }
  
  .checkout-buttons .btn {
    width: 100%;
  }
  
  .header-main .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-search {
    order: 3;
    margin: 0;
    max-width: 100%;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .cart-item {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  /* Simple checkout mobile */
  .checkout-container .container {
    padding: 1rem !important;
  }
  
  .simple-checkout-form {
    padding: 1rem;
  }
  
  .simple-order-summary {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.transition { transition: all 0.3s ease; }

/* Blog Section Styles */
.blog-section {
  padding: 4rem 0;
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.blog-card h3 a:hover {
  color: var(--primary-500) !important;
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-content {
  padding: 1.5rem;
}

/* Responsive blog grid */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-section {
    padding: 2rem 0;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  z-index: 9999;
  max-width: 300px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.notification-success {
  background: #10b981;
}

.notification-error {
  background: #ef4444;
}

.notification-info {
  background: #3b82f6;
}

/* Loading */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Page specific responsive styles */
.page-title {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Mobile menu improvements */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--accent-50);
}

/* Improved responsive containers */
@media (max-width: 768px) {
  .single-product-container .container,
  .cart-container .container,
  .checkout-container .container {
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .single-product-container .container,
  .cart-container .container,
  .checkout-container .container {
    padding: 1rem 0.5rem !important;
  }
}