/* =======================================
   BRAND / PRIMARY COLORS
   ======================================= */
.dads-blue {
    color: #274d7b;
}
.dads-green {
    color: #a6ce39;
}
.dads-blue-bg {
    background-color: #274d7b;
}
.dads-green-bg {
    background-color: #a6ce39;
}

/* =======================================
   GLOBAL BUTTONS
   ======================================= */
.btn-primary {
    background-color: #274d7b;
    color: #ffffff;
    border: 0;
}
a.btn-primary {
    color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #a6ce39;
    color: #ffffff;
}

.btn-secondary {
    background-color: #274d7b;
    color: #ffffff;
    border: 0;
}
a.btn-secondary {
    color: #ffffff;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #a6ce39;
    color: #ffffff;
}

/* =======================================
   MINICART
   ======================================= */
.hc-minicart .hc-iconbox a {
    display: block;
    height: 32px;
    text-align: right;
    padding: 4px 10px;
    font-weight: bold;
    color: #ffffff;
}
.hc-minicart .hc-iconbox a:hover {
    display: block;
    height: 32px;
    text-align: right;
    padding: 4px 10px;
    font-weight: bold;
    color: #ffffff;
}

/* =======================================
   COMMON UTILITIES
   ======================================= */
.bottom-border-green {
    border-bottom: 3px solid #a6ce39;
}

.pane_space {
    padding-top: 0 !important;
}

.hc-record-grid {
    margin-top: 0 !important;
}

/* =======================================
   LEGACY HOMEPAGE CATEGORIES (flex)
   ======================================= */
.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-container > div {
    margin: 5px;
    width: 200px;
    text-align: center;
}

.home-cat-img {
    width: 100px;
}

/* =======================================
   IMAGE BOX
   ======================================= */
.img-box08 {
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    margin-bottom: 50px;
    text-align: center;
    padding-bottom: 30px;
    height: calc(100% - 50px);
}
.img-box08 .product {
    margin-bottom: 16px;
}
.img-box08 .price {
    margin: 0;
    font-weight: 600;
}
.img-box08 .title {
    margin: 4px 0 4px;
    font-size: 18px;
}

/* =======================================
   OLD PRODUCTS GRID (flex-based)
   ======================================= */
.flex-products-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}
.product-grid-container {
    padding: 20px 10px;
    text-align: center;
    width: 290px;
    margin: 3px;
    outline: 1px solid #eee;
    border-radius: 5px;
}
.product-grid-image {
    min-height: 230px;
    vertical-align: middle;
}

/* =======================================
   HOTCAKES – CATEGORY GRID (HOME)
   ======================================= */

/* Section spacing */
.hc-category-grid {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Equal spacing horizontally & vertically */
.hc-category-row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.hc-category-col {
    padding: 0.75rem;
}

/* Category card shell */
.hc-category-grid .hc-category-card {
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    background-color: #ffffff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hc-category-grid .hc-category-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Normalized image area */
.hc-category-grid .hc-category-card-img {
    height: 160px;              /* adjust height to taste */
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hc-category-grid .hc-category-card-img .home-cat-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Card body */
.hc-category-grid .hc-category-card .card-body {
    padding: 0.75rem;
}

/* Category title */
.hc-category-grid .home-cat-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #175cab;             /* category link color */
    text-decoration: none;
}
.hc-category-grid .hc-category-card:hover .home-cat-link {
    text-decoration: underline;
}

/* =======================================
   HOTCAKES – FEATURED PRODUCTS
   ======================================= */

/* Equal spacing horizontally & vertically */
.hc-featured-product-grid {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.hc-featured-product-col {
    padding: 0.75rem;
}

/* Card shell */
.hc-featured-product-grid .hc-featured-product-card {
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
    background-color: #ffffff;
}
.hc-featured-product-grid .hc-featured-product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Header / image area: same size for all */
.hc-featured-product-card .card-header {
    background-color: #ffffff;
    border-bottom: 0;
    padding: 0;
}
.hc-featured-product-img-wrapper {
    height: 210px;              /* adjust height to taste */
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hc-featured-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* keep aspect ratio inside box */
}

/* Body */
.hc-featured-product-card .card-body {
    padding: 0.75rem 1rem 0.5rem;
}

/* Title – fixed vertical space so rows align */
.hc-featured-product-title-wrapper {
    min-height: 3.4rem;         /* ~2 lines of text */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.hc-featured-product-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #175cab;             /* product title color */
    text-decoration: none;
}
.hc-featured-product-title:hover {
    text-decoration: underline;
}

/* Price */
.hc-featured-product-price {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer / buttons */
.hc-featured-product-card .card-footer {
    background-color: #ffffff;
    border-top: 0;
    padding: 0.75rem 1rem 1rem;
}

/* Common button styling – FEATURED */
.hc-featured-product-card .btn {
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 0.25rem;     /* slight rounded corners */
    padding: 0.4rem 0.9rem;
}
.hc-featured-product-card .btn i {
    margin-right: 0.35rem;
}

/* Brand primary button (Add to Cart) – FEATURED */
.hc-featured-product-card .btn-hc-primary {
    background-color: #274d7b;
    border-color: #274d7b;
    color: #ffffff;
}
.hc-featured-product-card .btn-hc-primary:hover,
.hc-featured-product-card .btn-hc-primary:focus {
    background-color: #a6ce39;
    border-color: #a6ce39;
    color: #ffffff;
}

/* Brand outline button (View) – FEATURED */
.hc-featured-product-card .btn-hc-outline {
    background-color: transparent;
    border: 1px solid #274d7b;
    color: #274d7b;
}
.hc-featured-product-card .btn-hc-outline:hover,
.hc-featured-product-card .btn-hc-outline:focus {
    background-color: #a6ce39;
    border-color: #a6ce39;
    color: #ffffff;
}

/* =======================================
   HOTCAKES – PRODUCT GRID (MAIN CATEGORY)
   ======================================= */

/* Section spacing */
.hc-product-grid-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Equal spacing horizontally & vertically */
.hc-product-row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.hc-product-col {
    padding: 0.75rem;
}

/* Card shell */
.hc-product-card-inner {
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}
.hc-product-card-inner:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Image area – all equal size */
.hc-product-img-wrapper {
    position: relative;
    height: 210px;              /* adjust to taste */
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hc-product-img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}
.hc-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Sale badge */
.hc-product-badge-sale {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

/* Body */
.hc-product-card-inner .card-body {
    padding: 0.75rem 1rem 0.5rem;
}

/* Title – fixed vertical space so rows align */
.hc-product-title-wrapper {
    min-height: 3.4rem;         /* ~2 lines of text */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.hc-product-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #175cab;
    text-decoration: none;
}
.hc-product-title:hover {
    text-decoration: underline;
}

/* Price */
.hc-product-price {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer / buttons */
.hc-product-card-inner .card-footer {
    background-color: #ffffff;
    border-top: 0;
    padding: 0.75rem 1rem 1rem;
    margin-top: auto;           /* push footer to bottom of card */
}

/* Common button styling – PRODUCT GRID */
.hc-product-card-inner .btn {
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 0.25rem;     /* slight rounded corners */
    padding: 0.4rem 0.9rem;
}
.hc-product-card-inner .btn i {
    margin-right: 0.35rem;
}

/* Brand primary button (Add to Cart) – PRODUCT GRID */
.hc-product-card-inner .btn-hc-primary {
    background-color: #274d7b;
    border-color: #274d7b;
    color: #ffffff;
}
.hc-product-card-inner .btn-hc-primary:hover,
.hc-product-card-inner .btn-hc-primary:focus {
    background-color: #a6ce39;
    border-color: #a6ce39;
    color: #ffffff;
}

/* Brand outline button (View) – PRODUCT GRID */
.hc-product-card-inner .btn-hc-outline {
    background-color: transparent;
    border: 1px solid #274d7b;
    color: #274d7b;
}
.hc-product-card-inner .btn-hc-outline:hover,
.hc-product-card-inner .btn-hc-outline:focus {
    background-color: #a6ce39;
    border-color: #a6ce39;
    color: #ffffff;
}

/* =======================================
   HOTCAKES – ADD TO CART BUTTON OVERRIDE
   (Fix default sprite styles but keep bg-color)
   ======================================= */
a.add-to-cart-product {
    text-indent: 0 !important;
    background-image: none !important; /* remove sprite image only */
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
a.add-to-cart-product span {
    display: inline-block;
    text-indent: 0 !important;
}

/* =======================================
   BOOTSTRAP PAGINATION – BRAND COLORS
   ======================================= */
.page-link {
    color: #274d7b;
}

.page-link:hover,
.page-link:focus {
    color: #ffffff;
    background-color: #a6ce39;
    border-color: #a6ce39;
}

.page-item.active .page-link {
    z-index: 1;
    color: #ffffff;
    background-color: #274d7b;
    border-color: #274d7b;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #ffffff;
    border-color: #dee2e6;
}

/* =======================================
   HOTCAKES – MINICART
   ======================================= */

.hc-minicart {
    position: relative;
    display: inline-block;
}

/* Icon box / toggle */
.hc-minicart .hc-iconbox {
    border-radius: 1.5rem;
    background-color: #274d7b;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-minicart .hc-iconbox a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 4px 10px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.hc-minicart .hc-iconbox a i {
    margin-right: 6px;
}

.hc-minicart .hc-minicart-count {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.hc-minicart .hc-iconbox:hover,
.hc-minicart .hc-iconbox.hc-minicart-active {
    background-color: #a6ce39;
    box-shadow: 0 0.35rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* Dropdown */
.hc-minicart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 320px;
    max-width: 380px;
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    padding: 0.75rem 0.75rem 0.9rem;
    z-index: 9999;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

/* Header */
.hc-minicart-header h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #274d7b;
}

.hc-minicart-header i {
    margin-right: 4px;
}

.hc-minicart-items {
    font-size: 0.8rem;
}

/* Body table */
.hc-minicart-body .table {
    margin-bottom: 0;
}

.hc-minicart-img-cell {
    width: 48px;
}

.hc-minicart-img {
    max-width: 40px;
    max-height: 40px;
}

.hc-minicart-name-cell a.hc-mini-cart {
    display: block;
    font-size: 0.9rem;
    color: #274d7b;
    text-decoration: none;
}

.hc-minicart-name-cell a.hc-mini-cart:hover {
    text-decoration: underline;
}

.hc-minicart-qty {
    font-size: 0.8rem;
}

.hc-minicart-price-cell {
    white-space: nowrap;
}

.hc-minicart-price {
    font-size: 0.9rem;
}

/* Subtotal */
.hc-minicart-subtotal {
    border-top: 1px solid #e1e1e1;
    margin-top: 0.25rem;
}

.hc-minicart-subtotal-label {
    font-weight: 600;
    color: #274d7b;
}

.hc-minicart-subtotal-value {
    font-weight: 700;
}

.hc-categorymenu .hc-current > a {
    color: #aacf38 !important;
}


/* CART IMAGES */
/* Cart item image – fixed height so rows are consistent */
.hc-cart .hc-cart-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-cart .hc-cart-item-img {
    max-height: 80px;      /* adjust to taste: 60–100px works well */
    width: auto;
    max-width: 100%;
    object-fit: contain;   /* keep aspect ratio inside the box */
}

