/* ============================================
   Plantation Cafe x Roastery - Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.3;
}

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

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-size: 13px;
  letter-spacing: 1px;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px;
  gap: 15px;
}

.header-top a,
.header-top button {
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-top .cart-icon::before {
  content: '🛒';
}

.header-top .search-icon::before {
  content: '🔍';
}

.site-logo {
  text-align: center;
  padding: 20px 0 10px;
}

.site-logo a {
  display: inline-block;
}

.site-logo h1,
.site-logo .logo-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.site-logo .logo-subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  color: #666;
  margin-top: 2px;
}

.logo-img {
  max-height: 80px;
  margin: 0 auto;
}

/* ============================================
   Main Navigation
   ============================================ */
.main-nav {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 15px 25px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #333;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: #000;
  background: #f5f5f5;
}

.nav-item.has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e8e8e8;
  z-index: 999;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: #333;
}

/* ============================================
   Hero Slideshow
   ============================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-text {
  color: #fff;
  text-align: center;
  padding: 20px;
}

.slide-text h2 {
  font-size: 48px;
  letter-spacing: 10px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 15px;
}

.slide-text p {
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.9;
}

.slide-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.slide-dot.active {
  background: #fff;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: #999;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* ============================================
   Page Title
   ============================================ */
.page-title {
  text-align: center;
  padding: 40px 0 20px;
}

.page-title h1 {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 400;
  color: #000;
}

/* ============================================
   Featured Products / Shopee Products
   ============================================ */
.section-title {
  text-align: center;
  padding: 50px 0 30px;
}

.section-title h2 {
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  color: #000;
}

.section-title p {
  margin-top: 10px;
  color: #777;
  font-size: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 0 60px;
}

.product-card {
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 15px;
}

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

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

.product-card h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #333;
}

.product-card .price {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.product-card .btn-shopee {
  display: inline-block;
  background: #ee4d2d;
  color: #fff;
  padding: 10px 25px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.product-card .btn-shopee:hover {
  background: #d73211;
}

/* ============================================
   Collection Grid
   ============================================ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px 0 60px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f5f5;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.collection-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 30px 20px 20px;
  color: #fff;
}

.collection-card h3 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 400;
}

/* Product list in collection pages */
.collection-info {
  text-align: center;
  padding: 20px 0 30px;
  max-width: 700px;
  margin: 0 auto;
}

.collection-info p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.collection-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 0 0 60px;
}

.collection-product {
  text-align: center;
}

.collection-product .product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 12px;
}

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

.collection-product h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.collection-product .price {
  font-size: 14px;
  color: #666;
}

/* ============================================
   Content Pages (About, Coffee Story, etc.)
   ============================================ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.page-content h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.page-content h2 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #000;
}

.page-content h3 {
  font-size: 18px;
  margin: 25px 0 10px;
  color: #333;
}

.page-content p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

.page-content ul,
.page-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.page-content li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.7;
  list-style: disc;
}

.page-content ol li {
  list-style: decimal;
}

.page-content img {
  margin: 20px auto;
  border-radius: 4px;
}

.page-content .full-width-image {
  width: 100%;
  margin: 30px 0;
}

/* ============================================
   Image Gallery (Atmosphere page)
   ============================================ */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px 0 60px;
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s;
  cursor: pointer;
}

.image-gallery img:hover {
  transform: scale(1.03);
}

/* ============================================
   Menu Pages
   ============================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px 0 60px;
}

.menu-category h3 {
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted #ddd;
}

.menu-item-name {
  font-size: 14px;
  color: #333;
}

.menu-item-price {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  margin-left: 15px;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 60px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.7;
}

.contact-info .info-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-info .info-label {
  font-weight: 600;
  min-width: 80px;
  color: #333;
}

.contact-map {
  width: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 4px;
}

/* ============================================
   Blog / Coffee Story
   ============================================ */
.blog-list {
  padding: 20px 0 60px;
}

.blog-post {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.blog-post h2 a:hover {
  color: #666;
}

.blog-post .post-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.blog-post .post-excerpt {
  color: #555;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-col p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #555;
  border-radius: 50%;
  color: #aaa;
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

.newsletter-form {
  display: flex;
  margin-top: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: #777;
}

.newsletter-form button {
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #ddd;
}

.footer-bottom {
  text-align: center;
  padding: 25px 20px;
  margin-top: 40px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #777;
}

.footer-bottom a {
  color: #999;
}

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

/* ============================================
   Thai Language Section
   ============================================ */
.thai-section {
  border-top: 2px solid #e8e8e8;
  margin-top: 40px;
  padding-top: 40px;
}

.thai-section .lang-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.thai-section h1,
.thai-section h2,
.thai-section h3,
.thai-section p,
.thai-section li {
  font-family: 'Sarabun', 'Noto Sans Thai', 'Helvetica Neue', sans-serif;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
}

.btn-shopee-large {
  background: #ee4d2d;
  color: #fff;
  padding: 14px 35px;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-transform: uppercase;
}

.btn-shopee-large:hover {
  background: #d73211;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .collection-products {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    font-size: 11px;
  }
  
  .site-logo h1,
  .site-logo .logo-text {
    font-size: 22px;
    letter-spacing: 4px;
  }
  
  /* Mobile Navigation */
  .main-nav {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8e8e8;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-item > a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    display: none;
  }
  
  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding-left: 40px;
  }
  
  /* Hero */
  .hero-slideshow {
    height: 50vh;
    min-height: 300px;
  }
  
  .slide-text h2 {
    font-size: 28px;
    letter-spacing: 5px;
  }
  
  /* Grids */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
  }
  
  .collection-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  
  .collection-products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .page-title h1 {
    font-size: 24px;
  }
  
  .section-title h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .collection-products {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
  
  .hero-slideshow {
    height: 40vh;
    min-height: 250px;
  }
  
  .slide-text h2 {
    font-size: 22px;
    letter-spacing: 3px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; }
.pb-40 { padding-bottom: 40px; }

/* ============================================
   Contact Page Layout
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 40px;
}

.contact-info-section h2,
.contact-info-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #000;
}

.contact-details {
  margin-top: 20px;
}

.contact-detail-item {
  margin-bottom: 20px;
}

.contact-detail-item h3,
.contact-detail-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.contact-detail-item p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.contact-detail-item a {
  color: #333;
  text-decoration: underline;
}

.contact-detail-item a:hover {
  color: #000;
}

.contact-form-section h2,
.contact-form-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #000;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
}

.contact-form textarea {
  resize: vertical;
}

/* Map Section */
.map-section {
  padding: 20px 0;
}

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
}

/* Policy Table */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px;
}

.policy-table th,
.policy-table td {
  padding: 10px 15px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 14px;
}

.policy-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.policy-table td {
  color: #555;
}

/* Policy Content */
.policy-content {
  max-width: 800px;
}

.policy-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 12px;
}

.policy-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
