/*
Theme Name: D-Ray Foods
Theme URI: https://example.com/dray-foods-theme/
Author: Your Name
Author URI: https://example.com/
Description: A custom WordPress theme for D-Ray Foods & Export
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dray-foods
Tags: e-commerce, food, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  overflow-x: hidden;
}

/* Remove all underlines from links */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

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

/* Mobile-first responsive containers */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem !important;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.left-0 {
  left: 0;
}
.z-50 {
  z-index: 50;
}
.z-10 {
  z-index: 10;
}

/* Flexbox utilities */
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.flex-1 {
  flex: 1;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-shrink-0 {
  flex-shrink: 0;
}

/* Grid utilities */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive grid utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:hidden {
    display: none;
  }
  .md\:flex {
    display: flex;
  }
}

/* Spacing */
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

/* Padding */
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Margin */
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}

/* Width & Height */
.w-full {
  width: 100%;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}

.max-w-xl {
  max-width: 36rem;
}
.max-w-2xl {
  max-width: 42rem;
}

/* Aspect ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Colors */
.text-white {
  color: #ffffff;
}
.text-black {
  color: #000000 !important;
}
.text-gray-300 {
  color: #d1d5db;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-500 {
  color: #6b7280;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-900 {
  color: #111827;
}
.text-green-400 {
  color: #4ade80;
}
.text-green-600 {
  color: #16a34a;
}
.text-green-700 {
  color: #15803d;
}
.text-green-800 {
  color: #166534;
}

.bg-white {
  background-color: #ffffff;
}
.bg-black {
  background-color: #000000;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}
.bg-green-50 {
  background-color: #f0fdf4;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.bg-green-600 {
  background-color: #16a34a;
}
.bg-green-700 {
  background-color: #15803d;
}

/* Hover states */
.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}
.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}
.hover\:bg-green-700:hover {
  background-color: #15803d;
}
.hover\:text-green-400:hover {
  color: #4ade80;
}
.hover\:text-green-600:hover {
  color: #16a34a;
}
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

@media (min-width: 768px) {
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.leading-tight {
  line-height: 1.25;
}

/* Borders */
.border {
  border-width: 1px;
}
.border-gray-200 {
  border-color: #e5e7eb;
}
.border-gray-300 {
  border-color: #d1d5db;
}
.border-gray-800 {
  border-color: #1f2937;
}
.border-white {
  border-color: #ffffff;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 {
  transition-duration: 300ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Button styles */
button,
.button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.25rem;
  min-height: 44px;
}

.button-primary,
input[type="submit"] {
  background-color: #16a34a;
  color: #ffffff;
}

.button-primary:hover,
input[type="submit"]:hover {
  background-color: #15803d;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  min-height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* WooCommerce specific styles */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  .woocommerce .products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .woocommerce .products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.woocommerce .product {
  width: 100% !important;
  max-width: 100% !important;
  background: white !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s !important;
  margin-bottom: 1rem !important;
}

.woocommerce .product:hover {
  transform: translateY(-2px) !important;
}

.woocommerce .product img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
}

.woocommerce .product .woocommerce-loop-product__title,
.woocommerce .product h3 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin: 0.5rem 0 !important;
  color: #000000 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  padding: 0 1rem !important;
}

.woocommerce .product .woocommerce-loop-product__title a {
  color: #000000 !important;
  text-decoration: none !important;
}

.woocommerce .product .woocommerce-loop-product__title a:hover {
  color: #16a34a !important;
  text-decoration: none !important;
}

.woocommerce .product .price {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #16a34a !important;
  margin-bottom: 0.75rem !important;
  padding: 0 1rem !important;
}

.woocommerce .add_to_cart_button,
.woocommerce .product .button {
  background-color: #16a34a !important;
  color: white !important;
  padding: 0.75rem 1rem !important;
  border: none !important;
  border-radius: 0.375rem !important;
  cursor: pointer !important;
  width: calc(100% - 2rem) !important;
  margin: 0.5rem 1rem 1rem 1rem !important;
  font-size: 0.875rem !important;
  min-height: 44px !important;
  text-decoration: none !important;
  display: block !important;
  text-align: center !important;
}

.woocommerce .add_to_cart_button:hover,
.woocommerce .product .button:hover {
  background-color: #15803d !important;
  text-decoration: none !important;
}

/* Ensure no horizontal scroll */
body,
html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Group hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* WordPress specific styles */
.wp-block-image img {
  height: auto;
  max-width: 100%;
}

.aligncenter {
  text-align: center;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .container {
    max-width: 100%;
    overflow-x: hidden;
  }

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
