/*

Theme Name: Ayam Kampung Asli

Author: Gemini

Description: A custom WordPress theme for the Ori Ayam Kampung website, based on the provided HTML.

Version: 1.0

*/



body {

    font-family: 'Inter', sans-serif;

    background-color: #f5f5f7;

    color: #333;

    scroll-behavior: smooth;

}



.section-wrapper {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 4rem 1rem;

    position: relative;

    overflow: hidden;

}



.text-overlay {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 10;

}



.fade-in {

    opacity: 0;

    transform: translateY(20px);

    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}



.fade-in.is-visible {

    opacity: 1;

    transform: translateY(0);

}



.apple-like-button {

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}



.apple-like-button:hover {

    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);

    transform: translateY(-2px);

}



.apple-like-button:active {

    transform: translateY(0);

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



/* Responsive Hero Image */

@media (min-width: 1024px) {

    #hero-section {

        background-size: cover;

        background-position: center;

        height: 100vh;

    }

}



.hero-bg {

    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/nasi-lemak-campur-2.jpeg');

    background-size: cover;

    background-position: center;

    height: 100vh;

    width: 100%;

}



.relative { position: relative; z-index: 10; }



@keyframes fadeIn {

    from {opacity: 0; transform: scale(0.95);}

    to {opacity: 1; transform: scale(1);}

}

.animate-fadeIn { animation: fadeIn 0.25s ease-out forwards; }



/* Custom Scrollbar */

::-webkit-scrollbar {

    width: 6px;

}

::-webkit-scrollbar-thumb {

    background: #DA291C;

    border-radius: 3px;

}





/*

================================================

 WooCommerce Custom Styling

================================================

*/



/* Main Shop Container & Grid Layout */

.woocommerce ul.products {

    /* This uses Tailwind's grid classes directly in the template now, but you can keep this as a fallback */

    display: grid;

    grid-template-columns: repeat(1, 1fr);

    gap: 2rem; /* 32px */

}



/* Responsive Grid for Tablets and Desktops */

@media (min-width: 640px) { /* sm breakpoint */

    .woocommerce ul.products {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (min-width: 1024px) { /* lg breakpoint */

    .woocommerce ul.products {

        grid-template-columns: repeat(4, 1fr);

    }

}



/* Individual Product Card Styling */

.woocommerce ul.products li.product {

    background-color: #f9fafb; /* bg-gray-100 */

    padding: 1.5rem; /* p-6 */

    border-radius: 0.75rem; /* rounded-xl */

    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */

    text-align: center;

    list-style: none;

    margin: 0;

    float: none; /* Override default float */

    width: auto; /* Override default width */

}



/* Product Image */

.woocommerce ul.products li.product a img {

    border-radius: 0.75rem; /* rounded-xl */

    margin-bottom: 1rem; /* mb-4 */

    width: 100%;

    height: auto;

    display: block;

    margin-left: auto;

    margin-right: auto;

}



/* Product Title */

.woocommerce ul.products li.product .woocommerce-loop-product__title {

    font-size: 1.5rem; /* text-2xl */

    font-weight: 600; /* font-semibold */

    margin-bottom: 0.5rem; /* mb-2 */

    color: #DA291C;

}



/* Product Price */

.woocommerce ul.products li.product .price {

    color: #4b5563; /* text-gray-600 */

    font-size: 0.875rem; /* text-sm */

    margin-bottom: 1.5rem; /* mb-6 */

    display: block;

}



/* "Add to Cart" Button Styling */

.woocommerce ul.products li.product .button {

    display: inline-block;

    background-color: #DA291C !important; /* Important to override default WooCommerce styles */

    color: white !important;

    font-weight: 500; /* font-medium */

    padding: 0.5rem 1.5rem; /* px-6 py-2 */

    border-radius: 9999px; /* rounded-full */

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}



/* Button Hover State */

.woocommerce ul.products li.product .button:hover {

    background-color: #FFC72C !important;

    color: #DA291C !important;

    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);

    transform: translateY(-2px);

}



/* Remove sale badge for cleaner look (optional) */

.woocommerce span.onsale {

    display: none;

}



/* Center pagination links */

.woocommerce .woocommerce-pagination {

    margin-top: 3rem;

    text-align: center;

}

.woocommerce nav.woocommerce-pagination ul {

    border: none;

}

.woocommerce nav.woocommerce-pagination ul li {

    border-right: none;

}

.woocommerce nav.woocommerce-pagination ul li a,

.woocommerce nav.woocommerce-pagination ul li span {

    padding: 0.75rem 1rem;

    border-radius: 0.5rem;

}

.woocommerce nav.woocommerce-pagination ul li span.current {

    background: #DA291C;

    color: white;

}





.woocommerce form .form-row label {

  @apply block text-sm font-medium text-gray-700 mb-1;

}

.woocommerce form .input-text {

  @apply w-full rounded-lg border border-gray-300 focus:ring-[#DA291C] focus:border-[#DA291C] py-2 px-3;

}

.woocommerce-checkout-review-order-table th,

.woocommerce-checkout-review-order-table td {

  @apply text-gray-700;

}

.place-order button {

  @apply w-full bg-[#DA291C] text-white py-3 rounded-full hover:bg-[#FFC72C] hover:text-[#DA291C] transition-colors font-semibold;

}







/* Smooth transition for home header when scrolling */

header.fixed {

  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;

}





.woocommerce-MyAccount-navigation ul li {

  border-bottom: 1px solid rgba(0, 0, 0, 0.1);

  padding: 10px 0;

}



.woocommerce-MyAccount-navigation ul li a {

  color: #444;

  transition: color 0.2s ease;

}



.woocommerce-MyAccount-navigation ul li:hover a {

  color: #000;

}



.woocommerce-MyAccount-navigation ul li.is-active a {

  color: #ffc72c; /* green highlight */

  font-weight: 600;

}



.woocommerce-MyAccount-navigation ul {

  width: 200px;

  max-width: 200px;

}





/* WooCommerce Orders Table====Begin */

/* ===== WooCommerce Orders Table Beautification ===== */

.woocommerce-orders-table {

  width: 100%;

  border-collapse: separate;

  border-spacing: 0;

  border: 1px solid #e2e8f0;

  border-radius: 8px;

  overflow: hidden;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  background-color: #fff;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);

}



/* ===== Table Header ===== */

.woocommerce-orders-table thead {

  background-color: #f9fafb;

}



.woocommerce-orders-table th {

  text-align: left;

  padding: 12px 16px;

  color: #374151;

  font-weight: 600;

  border-bottom: 1px solid #e5e7eb;

  white-space: nowrap;

}



/* ===== Table Body ===== */

.woocommerce-orders-table tbody tr {

  transition: background-color 0.2s ease;

}



.woocommerce-orders-table tbody tr:nth-child(even) {

  background-color: #fafafa;

}



.woocommerce-orders-table tbody tr:hover {

  background-color: #f3f4f6;

}



/* ===== Table Cells ===== */

.woocommerce-orders-table td,

.woocommerce-orders-table th {

  padding: 12px 16px;

  vertical-align: middle;

}



/* ===== Order Links ===== */

.woocommerce-orders-table a {

  color: #2563eb;

  text-decoration: none;

  font-weight: 500;

}



.woocommerce-orders-table a:hover {

  text-decoration: underline;

}



/* ===== Order Status Colors ===== */

.woocommerce-orders-table__row--status-processing td.woocommerce-orders-table__cell-order-status {

  color: #10b981;

  font-weight: 600;

}



.woocommerce-orders-table__row--status-cancelled td.woocommerce-orders-table__cell-order-status {

  color: #ef4444;

  font-weight: 600;

}



.woocommerce-orders-table__row--status-preparing td.woocommerce-orders-table__cell-order-status {

  color: #f59e0b;

  font-weight: 600;

}



/* ===== View Button ===== */

.woocommerce-orders-table a.button.view {

  display: inline-block;

  background-color: #2563eb;

  color: #fff !important;

  padding: 6px 14px;

  border-radius: 6px;

  font-size: 13px;

  transition: background-color 0.2s ease;

}



.woocommerce-orders-table a.button.view:hover {

  background-color: #1d4ed8;

}



/* ===== Responsive ===== */

@media (max-width: 768px) {

  .woocommerce-orders-table {

    font-size: 13px;

  }

  .woocommerce-orders-table th,

  .woocommerce-orders-table td {

    padding: 10px 12px;

  }

}



/* WooCommerce Orders Table === END */





/* ====== SINGLE ORDER PAGE BEAUTIFICATION ====== */

.woocommerce-order {

  font-family: 'Inter', sans-serif;

  color: #1f2937;

  background-color: #fff;

  border-radius: 12px;

  padding: 24px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 2px 8px rgba(0,0,0,0.04);

}



/* ====== Order Summary (Top Notice) ====== */

.woocommerce-order p {

  background-color: #f9fafb;

  padding: 14px 18px;

  border-radius: 8px;

  border-left: 4px solid #3b82f6;

  font-size: 15px;

  color: #374151;

  margin-bottom: 20px;

  line-height: 1.5;

}



.woocommerce-order mark {

  background: none;

  color: #111827;

  font-weight: 600;

}



/* ====== Section Titles ====== */

.woocommerce-order-details__title,

.woocommerce-column__title {

  font-size: 18px;

  font-weight: 700;

  color: #111827;

  margin-bottom: 12px;

  border-bottom: 2px solid #3b82f6;

  display: inline-block;

  padding-bottom: 4px;

}



/* ====== Order Details Table ====== */

.woocommerce-table--order-details {

  width: 100%;

  border-collapse: separate;

  border-spacing: 0;

  margin-bottom: 24px;

  border: 1px solid #e5e7eb;

  border-radius: 8px;

  overflow: hidden;

}



.woocommerce-table--order-details th {

  background-color: #f3f4f6;

  padding: 12px 16px;

  font-weight: 600;

  color: #374151;

  text-align: left;

  border-bottom: 1px solid #e5e7eb;

}



.woocommerce-table--order-details td {

  padding: 12px 16px;

  border-bottom: 1px solid #f3f4f6;

  color: #1f2937;

}



.woocommerce-table--order-details tbody tr:hover {

  background-color: #f9fafb;

  transition: background-color 0.2s ease;

}



/* ====== Product Links ====== */

.woocommerce-table__product-name a {

  color: #2563eb;

  text-decoration: none;

  font-weight: 500;

}

.woocommerce-table__product-name a:hover {

  text-decoration: underline;

}



/* ====== Totals Section ====== */

.woocommerce-table--order-details tfoot th {

  background-color: #f9fafb;

  font-weight: 600;

  color: #111827;

}

.woocommerce-table--order-details tfoot td {

  background-color: #f9fafb;

  font-weight: 600;

  color: #111827;

}



/* ====== Customer Details ====== */

.woocommerce-customer-details {

  margin-top: 30px;

  background-color: #f9fafb;

  padding: 18px;

  border-radius: 8px;

  border: 1px solid #e5e7eb;

}



.woocommerce-customer-details address {

  line-height: 1.6;

  color: #374151;

  font-style: normal;

}



.woocommerce-customer-details--email {

  color: #2563eb;

  font-weight: 500;

  margin-top: 6px;

}



/* ====== Responsive ====== */

@media (max-width: 768px) {

  .woocommerce-order {

    padding: 16px;

  }

  .woocommerce-table--order-details th,

  .woocommerce-table--order-details td {

    padding: 10px 12px;

  }

  .woocommerce-order-details__title,

  .woocommerce-column__title {

    font-size: 16px;

  }

}





/* ====== WooCommerce Address Page Styling ====== */

.woocommerce-Addresses {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 24px;

  margin-top: 1rem;

}



/* ====== Each Address Card ====== */

.woocommerce-Address {

  background-color: #f9fafb;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  padding: 20px;

  transition: all 0.2s ease;

  box-shadow: 0 2px 6px rgba(0,0,0,0.03);

}



.woocommerce-Address:hover {

  transform: translateY(-2px);

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

}



/* ====== Address Title & Edit Link ====== */

.woocommerce-Address-title {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 14px;

  border-bottom: 2px solid #e5e7eb;

  padding-bottom: 6px;

}



.woocommerce-Address-title h2 {

  font-size: 18px;

  font-weight: 700;

  color: #111827;

  margin: 0;

}



.woocommerce-Address-title .edit {

  background-color: #3b82f6;

  color: white !important;

  font-size: 13px;

  font-weight: 600;

  padding: 5px 10px;

  border-radius: 6px;

  text-decoration: none;

  transition: background-color 0.2s ease;

}



.woocommerce-Address-title .edit:hover {

  background-color: #2563eb;

}



/* ====== Address Content ====== */

.woocommerce-Address address {

  color: #374151;

  font-style: normal;

  line-height: 1.7;

  font-size: 15px;

  background-color: #ffffff;

  border-radius: 8px;

  padding: 16px;

  border: 1px dashed #d1d5db;

  min-height: 120px;

}



/* ====== Empty Address Placeholder ====== */

.woocommerce-Address address:empty,

.woocommerce-Address address:contains('not set up') {

  color: #9ca3af;

  font-style: italic;

  text-align: center;

  padding: 20px;

}



/* ====== Top Notice Paragraph ====== */

.woocommerce-Addresses ~ p,

.woocommerce-Addresses + p,

.woocommerce-Addresses-wrapper p {

  font-size: 15px;

  color: #4b5563;

  margin-bottom: 16px;

  background-color: #f9fafb;

  padding: 12px 14px;

  border-radius: 8px;

  border-left: 4px solid #3b82f6;

  line-height: 1.6;

}



/* ====== Responsive Adjustments ====== */

@media (max-width: 768px) {

  .woocommerce-Address {

    padding: 16px;

  }

  .woocommerce-Address-title h2 {

    font-size: 16px;

  }

  .woocommerce-Address-title .edit {

    font-size: 12px;

    padding: 4px 8px;

  }

}





/* ====== Account Details Form Wrapper ====== */

.woocommerce-EditAccountForm {

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

  max-width: 640px;

  margin: 0 auto;

}



/* ====== Form Row ====== */

.woocommerce-form-row {

  display: flex;

  flex-direction: column;

}



/* ====== Label ====== */

.woocommerce-form-row label {

  font-weight: 600;

  color: #374151;

  margin-bottom: 6px;

  font-size: 15px;

}



/* ====== Input Field ====== */

.woocommerce-form-row .woocommerce-Input {

  width: 100%;

  border: 1px solid #d1d5db;

  border-radius: 8px;

  padding: 10px 12px;

  font-size: 15px;

  transition: all 0.2s ease;

  background-color: #ffffff;

}



.woocommerce-form-row .woocommerce-Input:focus {

  border-color: #3b82f6;

  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);

  outline: none;

}



/* ====== Input Hints ====== */

#account_display_name_description {

  font-size: 13px;

  color: #6b7280;

  margin-top: 4px;

  display: block;

}



/* ====== Fieldset for Password ====== */

.woocommerce-EditAccountForm fieldset {

  border: 1px solid #e5e7eb;

  border-radius: 10px;

  padding: 20px;

  background-color: #f9fafb;

}



.woocommerce-EditAccountForm fieldset legend {

  font-weight: 700;

  color: #111827;

  font-size: 16px;

  padding: 0 10px;

}



/* ====== Submit Button ====== */

.woocommerce-EditAccountForm .woocommerce-Button {

  background-color: #10b981;

  color: white;

  font-weight: 600;

  font-size: 15px;

  padding: 10px 20px;

  border: none;

  border-radius: 8px;

  transition: background-color 0.2s ease, transform 0.1s ease;

}



.woocommerce-EditAccountForm .woocommerce-Button:hover {

  background-color: #059669;

  transform: translateY(-1px);

}



/* ====== Overall Page Layout ====== */

.woocommerce-EditAccountForm p {

  margin: 0;

}



/* ====== Error / Notice Wrappers ====== */

.woocommerce-notices-wrapper {

  margin-bottom: 1rem;

}



/* ====== Responsive Design ====== */

@media (max-width: 768px) {

  .woocommerce-EditAccountForm {

    padding: 0 10px;

  }

  .woocommerce-EditAccountForm fieldset {

    padding: 15px;

  }

  .woocommerce-form-row label {

    font-size: 14px;

  }

  .woocommerce-form-row .woocommerce-Input {

    font-size: 14px;

    padding: 9px 10px;

  }

}





/* Invoice Modal Enhancements */

#invoiceModal .bg-white {

  max-height: 90vh;

  overflow-y: auto;

}



#invoiceContent table {

  width: 100%;

  border-collapse: collapse;

}

#invoiceContent th, #invoiceContent td {

  padding: 0.75rem 0.5rem;

}

#invoiceContent th {

  font-weight: 600;

  color: #374151;

}

#invoiceContent td {

  color: #4b5563;

}

#invoiceContent h2, #invoiceContent h3 {

  font-family: inherit;

  letter-spacing: -0.02em;

}





/* Force desktop grid during PDF generation */

.print-mode .grid.sm\:grid-cols-2 {

  display: grid !important;

  grid-template-columns: 1fr 1fr !important;

  gap: 24px !important;

}



.print-mode * {

  transition: none !important;

}



/* Optional: tighten spacing for PDF only */

.print-mode {

  font-size: 14px;

  line-height: 1.5;

}







/* Container layout for checkout sections */

form.checkout {

  display: flex;

  flex-wrap: wrap;

  gap: 1.5rem; /* optional spacing between columns */

}



/* Full-width notices wrapper */

.woocommerce-notices-wrapper.mb-6 {

  width: 100%;

  flex: 0 0 100%;

}



/* Left and right sections share half width */

.checkout-billing.space-y-6,

.checkout-order.space-y-6 {

  flex: 1 1 48%; /* each roughly half width */

  box-sizing: border-box;

}



/* Optional: improve responsiveness on small screens */

@media (max-width: 768px) {

  .checkout-billing.space-y-6,

  .checkout-order.space-y-6 {

    flex: 0 0 100%;

  }

}







/* ===============================

   WooCommerce Cart Page Styling

   =============================== */



/* --- Page Layout --- */

main.woocommerce-cart-page,

main.page-id-4242 {

  background-color: #fff;

  min-height: 100vh;

  padding-top: 6rem;

  padding-bottom: 5rem;

}



/* --- Page Title --- */

.prose h1 {

  font-size: 2.25rem;

  font-weight: 700;

  color: #DA291C;

  border-bottom: 3px solid #DA291C;

  display: inline-block;

  padding-bottom: 0.5rem;

  margin-bottom: 2rem;

}



/* --- Cart Table Wrapper --- */

.wc-block-cart__main {

  background: #fafafa;

  border-radius: 1rem;

  padding: 2rem;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  margin-bottom: 2rem;

  overflow-x: auto;

}



/* --- Table Layout --- */

.wc-block-cart-items {

  width: 100%;

  border-collapse: collapse;

}



.wc-block-cart-items thead {

  background: #f1f1f1;

}



.wc-block-cart-items__header th {

  padding: 1rem;

  text-align: left;

  font-weight: 600;

  color: #333;

  border-bottom: 2px solid #e0e0e0;

}



.wc-block-cart-items__row {

  border-bottom: 1px solid #eee;

  transition: background 0.2s ease;

}



.wc-block-cart-items__row:hover {

  background: #fff7f7;

}



/* --- Product Image --- */

.wc-block-cart-item__image img {

  width: 80px;

  height: 80px;

  border-radius: 0.5rem;

  object-fit: cover;

}



/* --- Product Name & Price --- */

.wc-block-components-product-name {

  font-size: 1.1rem;

  font-weight: 600;

  color: #222;

  text-decoration: none;

  transition: color 0.2s;

}



.wc-block-components-product-name:hover {

  color: #DA291C;

}



.wc-block-cart-item__prices .wc-block-components-product-price__value {

  color: #DA291C;

  font-weight: 600;

  font-size: 1rem;

}



/* --- Quantity Selector --- */

.wc-block-components-quantity-selector {

  display: flex;

  align-items: center;

  gap: 0.25rem;

  margin-top: 0.5rem;

}



.wc-block-components-quantity-selector__input {

  width: 3rem;

  text-align: center;

  border: 1px solid #ddd;

  border-radius: 6px;

  padding: 0.3rem;

  font-size: 0.9rem;

}



.wc-block-components-quantity-selector__button {

  background: #f5f5f5;

  border: 1px solid #ddd;

  color: #444;

  font-weight: bold;

  width: 28px;

  height: 28px;

  border-radius: 6px;

  cursor: pointer;

  transition: background 0.2s;

}



.wc-block-components-quantity-selector__button:hover:not(:disabled) {

  background: #DA291C;

  color: #fff;

}



/* --- Remove Link --- */

.wc-block-cart-item__remove-link {

  margin-top: 0.5rem;

  display: inline-block;

  color: #888;

  font-size: 0.9rem;

  background: transparent;

  border: none;

  cursor: pointer;

  transition: color 0.2s;

}



.wc-block-cart-item__remove-link:hover {

  color: #DA291C;

  text-decoration: underline;

}



/* --- Totals Sidebar --- */

.wc-block-cart__sidebar {

  background: #fff;

  border: 1px solid #eee;

  border-radius: 1rem;

  padding: 2rem;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

}



.wc-block-cart__totals-title {

  font-size: 1.5rem;

  font-weight: 600;

  color: #333;

  margin-bottom: 1rem;

  border-bottom: 2px solid #DA291C;

  padding-bottom: 0.5rem;

}



/* --- Totals Values --- */

.wc-block-components-totals-item__label {

  color: #555;

  font-weight: 500;

}



.wc-block-components-totals-item__value {

  font-weight: 600;

  color: #DA291C;

}



/* --- Proceed Button --- */

.wc-block-cart__submit-button {

  background-color: #DA291C !important;

  color: #fff !important;

  font-weight: 600;

  font-size: 1.1rem;

  border-radius: 9999px;

  padding: 0.75rem 1.5rem;

  transition: background 0.2s ease;

  text-align: center;

}



.wc-block-cart__submit-button:hover {

  background-color: #b21f16 !important;

}



/* --- Responsive Layout --- */

@media (min-width: 1024px) {

  .wc-block-cart {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 2rem;

  }

}



@media (max-width: 768px) {

  .wc-block-cart-items__header th {

    font-size: 0.9rem;

  }



  .wc-block-cart-item__image img {

    width: 60px;

    height: 60px;

  }



  .wc-block-cart__sidebar {

    margin-top: 2rem;

  }

}



/* ===============================

   WooCommerce Cart Page Grid Layout (60/40 Split)

   =============================== */



/* Parent grid container */

.wc-block-cart.wp-block-woocommerce-filled-cart-block {

  display: grid;

  grid-template-columns: 60% 40%; /* 60/40 width split */

  gap: 2rem;

  align-items: start;

}



/* Left: Cart items */

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block {

  background: #fafafa;

  border-radius: 1rem;

  padding: 2rem;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  width: 100%;

}



/* Right: Cart totals sidebar */

.wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {

  background: #fff;

  border: 1px solid #eee;

  border-radius: 1rem;

  padding: 2rem;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  width: 100%;

}



/* Responsive stacking on smaller screens */

@media (max-width: 1024px) {

  .wc-block-cart.wp-block-woocommerce-filled-cart-block {

    grid-template-columns: 1fr;

  }



  .wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {

    margin-top: 2rem;

  }

}





.order-tracking-page {

  margin-top: 40px;

}

.order-status-history ul {

  list-style-type: none;

  padding: 0;

}

.order-status-history li {

  padding: 10px 0;

}

/* ================================
   ADD TO CART – GLOBAL
================================ */
.tw-add-to-cart form.cart {
  @apply space-y-6;
}

/* ================================
   SIMPLE PRODUCT
================================ */
.tw-add-to-cart form.cart:not(.variations_form) {
  @apply flex flex-col sm:flex-row gap-4 items-stretch;
}

.tw-add-to-cart form.cart:not(.variations_form) .quantity {
  @apply w-full sm:w-32;
}

.tw-add-to-cart form.cart:not(.variations_form) input.qty {
  @apply w-full rounded-lg border border-gray-300 px-3 py-2 text-center;
}

.tw-add-to-cart form.cart:not(.variations_form) button.single_add_to_cart_button {
  @apply flex-1 rounded-lg bg-[#DA291C] px-6 py-3 text-white font-semibold
         hover:bg-red-700 transition;
}

/* ================================
   VARIABLE PRODUCT
================================ */
.tw-add-to-cart .variations_form {
  @apply space-y-6;
}

/* Variation rows */
.tw-add-to-cart table.variations tr {
  @apply flex flex-col gap-2;
}

/* Labels */
.tw-add-to-cart table.variations th.label {
  @apply text-left font-semibold text-gray-700;
}

/* Dropdown */
.tw-add-to-cart table.variations select {
  @apply w-full rounded-lg border border-gray-300 px-4 py-2
         focus:ring-2 focus:ring-red-200 focus:border-[#DA291C];
}

/* Reset link */
.tw-add-to-cart .reset_variations {
  @apply text-sm text-red-500 hover:underline;
}

/* Quantity + button */
.tw-add-to-cart .variations_button {
  @apply flex flex-col sm:flex-row gap-4;
}

.tw-add-to-cart .variations_button .quantity {
  @apply w-full sm:w-32;
}

.tw-add-to-cart .variations_button input.qty {
  @apply w-full rounded-lg border border-gray-300 px-3 py-2 text-center;
}

/* Add to cart button */
.tw-add-to-cart button.single_add_to_cart_button {
  @apply flex-1 rounded-lg bg-[#DA291C] px-6 py-3 text-white font-semibold
         hover:bg-red-700 transition
         disabled:opacity-50 disabled:cursor-not-allowed;
}

/* Remove Woo default padding */
.tw-add-to-cart table.variations td,
.tw-add-to-cart table.variations th {
  @apply p-0;
}
