/*
Theme Name: BarBenchApparel Theme
Theme URI: https://yourwebsite.com/
Author: Your Name
Description: A modern apparel WordPress theme based on the provided Figma design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barbenchapparel-theme
Tags: apparel, fashion, responsive, modern
*/

:root {
  --champagne: #F7E7CE;
  --ruby-red: #971B20;
  --green: #0C4925;
  --ivory: #FFFFF0;
}

html, body {
  height: 100%;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  /* Hide vertical scrollbar but allow scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
body {
  background: var(--ivory);
  color: var(--green);
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
main#main-content {
  flex: 1 0 auto;
  width: 100%;
  display: block;
}
.bb-footer {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  min-width: 320px;
  padding-left: calc(40px + env(safe-area-inset-left));
  padding-right: calc(40px + env(safe-area-inset-right));
}

/* Add more base styles and layout as needed */

.bb-header-inner {
  min-width: 320px;
}

/* Announcement Bar and full-width elements fix for mobile */
.bb-announcement-bar {
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  position: relative;
  background: #971B20;
  color: #fff;
  height: 35px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  z-index: 10;
  border: none;
  padding-top: 0;
  padding-bottom: 0;
}

.bb-hero {
  width: 100%;
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  min-width: 320px;
}

.bb-footer {
  width: 100%;
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Enhanced Header Styles */
.bb-header {
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bb-header.scrolled {
  background: rgba(255, 255, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.bb-menu {
  transition: all 0.3s ease;
}

@media (max-width: 700px) {
  .bb-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--ivory);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .bb-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .bb-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .bb-hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .bb-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* Category Card Overlay */
.bb-category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 73, 37, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  text-align: center;
}

.bb-category-overlay:hover {
  opacity: 1;
}

.bb-category-items {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.bb-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bb-category-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.bb-category-link:hover {
  background: white;
  color: var(--green);
}

/* Back to Top Button */
.bb-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.bb-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.bb-back-to-top:hover {
  background: #08381a;
  transform: translateY(-2px);
}

/* Tooltip Styles */
.bb-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 1001;
  pointer-events: none;
  display: none;
}

.bb-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* Search Form Styles */
.bb-search-form {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bb-search-form.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.bb-search-form input[type="search"] {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--green);
  border-radius: 4px;
  font-size: 1rem;
}

/* Add to Cart Button Animation */
.bb-add-to-cart {
  transition: all 0.3s ease;
}

.bb-add-to-cart.added {
  background: var(--ruby-red) !important;
  transform: scale(1.05);
}

/* Quantity Controls */
.bb-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bb-quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--green);
  background: white;
  color: var(--green);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-quantity-btn:hover {
  background: var(--green);
  color: white;
}

.bb-quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 0.3rem;
}

/* Widget Styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--champagne);
  padding-bottom: 0.5rem;
}

/* Sidebar Styles */
.bb-sidebar {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* WooCommerce Compatibility */
.woocommerce .bb-add-to-cart {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce .bb-add-to-cart:hover {
  background: #08381a;
}

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

/* Loading States */
.bb-loading {
  position: relative;
  overflow: hidden;
}

.bb-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Print Styles */
@media print {
  .bb-header,
  .bb-footer,
  .bb-back-to-top,
  .bb-announcement-bar {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
} 