/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background-color: white;
    line-height: 1.6;
    margin: 0;
}

/* logo */

.custom-logo-link {
    display: inline-block;
    max-width: 180px;
}

.custom-logo {
    width: auto;
    max-height: 60px;
    height: auto;
}

/* Color Variables */
:root {
    --primary-teal: #0d9488;
    --primary-orange: #fb923c;
    --light-peach: #fff7ed;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-teal);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0f766e;
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #ea580c;
}

/* Header Styles */
.site-header {
    background-color: white;
}

.site-header .logo {
    color: var(--primary-teal);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.site-header .logo:hover {
    color: var(--primary-orange);
}

/* Navigation */
.main-navigation {
    background-color: white;
    padding: 12px 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary-orange);
}

/* Mobile: Show ALL categories with horizontal scroll */
@media (max-width: 768px) {
    .nav-menu-wrapper {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }
    .cat-link {
        display: inline-block !important;
    }
    /* Hide the More dropdown button on mobile */
    .more-categories-dropdown {
        display: none !important;
    }
}

/* Desktop: Show first 7, hide rest, show More dropdown */
@media (min-width: 769px) {
    .nav-menu-wrapper {
        overflow-x: visible !important;
        flex-wrap: nowrap !important;
    }
    /* Hide categories beyond 7 on desktop */
    .cat-hidden-desktop {
        display: none !important;
    }
    /* Show the More dropdown button on desktop */
    .more-categories-dropdown {
        display: block !important;
    }
}

/* products */
.custom-product-grid .page-title {
  color:#115e59;
  font-size: 1.875rem;
  font-weight: bold;
}
.custom-product-grid ul.products.columns-4 li.product,
.custom-product-grid ul.products.columns-3 li.product,
.custom-product-grid ul.products.columns-2 li.product {
    float: none !important;
    width: auto !important;
}
.custom-product-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 24px !important;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}
.custom-product-grid ul.products li.product {
    display: flex !important;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0;
    transition: 3s;
}
.custom-product-grid ul.products li.product:hover {
    box-shadow: 0;
}
.custom-product-grid ul.products li.product img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover;
    margin: 0;
}
.custom-product-grid ul.products li.product .woocommerce-loop-product__title {
    margin: 10px 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.custom-product-grid ul.products li.product .price {
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}
.custom-product-grid ul.products li.product .button {
    margin-top: auto;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 9999px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}
.custom-product-grid ul.products li.product .button:hover {
    background-color: #ea580c;
}
.custom-product-grid ul.products li.product.outofstock {
    display: none !important;
}
.custom-product-grid ul.products li.product a {
  text-align: center;
  color: var(--primary-teal);
}
.custom-product-grid ul.products::before,
.custom-product-grid ul.products::after {
    content: none !important;
    display: none !important;
}

@media screen and (max-width: 768px) {
    .custom-product-grid ul.products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }

    .custom-product-grid ul.products li.product img {
        height: 200px;
    }
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
}

.woocommerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}
/* Container positioning */
.woocommerce .woocommerce-ordering {
    display: inline-block;
    position: relative;
}

/* Styled select */
.woocommerce .woocommerce-ordering .orderby {
    appearance: none;             /* remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5rem 1.25rem;     /* padding inside */
    font-size: 1rem;
    font-weight: 500;
    color: #0d9488;               /* dark teal text */
    background-color: #ffffff;    /* white background */
    border: 2px solid #14b8a6;   /* teal border */
    border-radius: 0.5rem;        /* slightly rounded corners */
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Hover and focus states */
.woocommerce .woocommerce-ordering .orderby:hover,
.woocommerce .woocommerce-ordering .orderby:focus {
    border-color: #fb923c;       /* orange border on hover/focus */
    color: #0d9488;
    background-color: #f0fdfa;   /* very light teal */
}

/* Arrow styling */
.woocommerce .woocommerce-ordering .orderby::after {
    content: "▾";                 /* down arrow */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.9rem;
    color: #0d9488;
}

/* Remove native arrow in IE/Edge */
.woocommerce .woocommerce-ordering .orderby::-ms-expand {
    display: none;
}

/* Dokan Store Styles */
.dokan-store-wrap {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.dokan-store-wrap .profile-frame {
    border: 4px solid var(--primary-teal);
    border-radius: 50%;
}

.dokan-store-name a {
    color: var(--primary-teal);
    font-weight: bold;
}

.dokan-store-name a:hover {
    color: var(--primary-orange);
}


/* Footer Styles */
.site-footer {
    background-color: var(--primary-teal);
    color: white;
    padding: 60px 0 20px;
}
.site-footer a {
    color: #d1fae5;
    text-decoration: none;
}
.site-footer a:hover {
    color: white;
}

/* Center lists within footer columns */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 12px;
    }
}

.bg-teal-100 { --tw-bg-opacity: 1; background-color: rgb(204 251 241 / var(--tw-bg-opacity)); }

.container {
  width: 80%;
  margin: auto;
}

#wpadminbar {
  z-index: -1 !important;
}

.register-form {
  max-width: 500px;
  margin: auto;
  background: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 50px;
  padding: 0px 25px;
}
.register-form h2 {
  color: #115e59;
  font-size: 1.875rem;
  font-weight: bold;
}
.register-form form .form-group{
  display: flex;
  flex-direction: column;
}
.register-form form .form-group label {
  margin-bottom: 10px;
}

.register-form input {
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 2px solid rgb(94, 234, 212);
  transition: all 0.2s ease;
}

.register-form input:focus {
  outline: none;
  border-color: #fb923c;
}

.register-form button {
  margin-top: 25px;
  background-color: #fb923c;
  color: white;
  border-radius: 9999px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
}
.register-form button:hover {
  background-color: #ea580c;
}

.woocommerce-error ul {
  padding-left: 10% !important;
}

.site-content .entry-header .entry-title {
  color: #115e59;
  font-size: 1.875rem;
  font-weight: bold;
}
.wp-block-woocommerce-empty-cart-block {
  color: var(--primary-teal);
}

.page-numbers{
  border: 0 !important;
  background: white;
  color: #0d9488;
  font-size: 1.875rem;
  font-weight: bold;
}
.page-numbers li a{
  border: 0;
  background: white;
  color: #0d9488;
  font-size: 1.875rem;
  font-weight: bold;
}
.page-numbers li a:hover{
  color: #115e59;
}
.page-numbers li span{
  border: 0;
  background: white;
  color: #0d9488;
  font-size: 1.875rem;
  font-weight: bold;
}
.page-numbers li span:hover{
  color: #115e59;
}
.woocommerce nav.woocommerce-pagination ul li{
  border: 0;
  background: white;
  color: #0d9488;
  font-size: 1.875rem;
  font-weight: bold;
}
.woocommerce nav.woocommerce-pagination ul li span.current {  
  border: 0;
  background: white;
  color: #fb923c;
}
.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover{
  border: 0;
  background: white;
  color: #115e59;
}