/* ==========================================================================
   GLOBAL BASE STYLES
   ========================================================================== */

/* Form Controls */
.form-control {
    padding-left: 3px;
    padding-right: 2px;
}

.form-control.sel {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
}

/* Table Elements */
table td,
th,
tr {
    padding: 5px;
}

/* Radio & Checkbox Inputs */
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
    margin-left: 0px;
}

/* General Links */
a:hover {
    color: Red;
}

/* ==========================================================================
   LAYOUT & NAVIGATION
   ========================================================================== */

/* Top Bar */
.front-topbar a,
.front-topbar li {
    font-size: 13px;
    font-weight: bold;
}

/* Navigation */
.nav {
    font-size: 16px;
}

.nav .fa {
    color: #428bca;
    font-size: 20px;
}

/* Breadcrumbs */
.breadcrumbs h3 {
    font-size: 17px;
    font-weight: 600;
}

.breadcrumbs h4 {
    padding: 10px;
    font-size: 20px;
}

.breadcrumbs .fa-shopping-cart {
    padding-right: 7px;
}

/* Footer */
.footer a {
    color: #0da3e2;
}

/* ==========================================================================
   PANELS & CARDS
   ========================================================================== */

/* Panel Components */
.panel-title {
    font-size: 14px;
    font-weight: bold;
}

/* Card Components (Admin Pages) */
.card {
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    background-color: #ffffff;
}

.card-header {
    border-bottom: 1px solid #e6e9ef;
    background-color: #f8fafc;
    padding: 10px 16px;
}

.card-title {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.card-body {
    padding: 18px;
}

/* ==========================================================================
   UTILITY CLASSES (Bootstrap-style helpers)
   ========================================================================== */

/* Display Utilities */
.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-inline {
    display: inline !important;
}

/* Flexbox Utilities */
.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-md-row {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-self-center {
    align-self: center !important;
}

/* Sizing Utilities */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* Margin Utilities */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 4px !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-3 {
    margin-top: 16px !important;
}

.mt-4 {
    margin-top: 24px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 4px !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: 4px !important;
}

.mr-2 {
    margin-right: 8px !important;
}

.mr-3 {
    margin-right: 16px !important;
}

.mr-4 {
    margin-right: 24px !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 4px !important;
}

.ml-2 {
    margin-left: 8px !important;
}

.ml-3 {
    margin-left: 16px !important;
}

.ml-4 {
    margin-left: 24px !important;
}

.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Padding Utilities */
.px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.py-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.py-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.pt-3 {
    padding-top: 16px !important;
}

.pb-2 {
    padding-bottom: 8px !important;
}

.p-0 {
    padding: 0 !important;
}

/* Text Utilities */
.text-dark {
    color: #1f2937 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .mt-sm-0 {
        margin-top: 0 !important;
    }
}

@media (min-width: 992px) {
    .flex-md-row {
        flex-direction: row !important;
    }

    .mt-md-0 {
        margin-top: 0 !important;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }

    .mr-md-2 {
        margin-right: 8px !important;
    }
}

@media (min-width: 1200px) {
    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   SOCIAL & ICONS
   ========================================================================== */

.social_icons {
    list-style-type: none;
    list-style-image: none;
    padding-left: 0px;
}

.social_icons li {
    float: left;
    width: 60px;
}

.fa-check {
    margin-right: 10px;
    color: #0c92ca;
}

/* ==========================================================================
   STORE - CATEGORIES
   ========================================================================== */

/* Category Badge */
.category-count-badge {
    font-size: 12px;
    vertical-align: middle;
}

/* Category Grid Layout */
.category-grid {
    display: flex;
    flex-wrap: wrap;
}

.category-grid>.col-md-4,
.category-grid>.col-sm-6,
.category-grid>.col-xs-12 {
    margin-bottom: 30px;
}

/* Category Card */
.category-card {
    height: 100%;
}

/* Category Search */
.category-search {
    margin-bottom: 15px;
}

.category-search .form-control {
    padding: 8px 10px;
    height: 36px;
}

.category-search .btn {
    padding: 8px 12px;
    height: 36px;
}

.category-search .btn i {
    margin-right: 4px;
}

/* ==========================================================================
   STORE - PRODUCTS
   ========================================================================== */

/* Product Page Layout */
.product-page {
    padding-bottom: 50px;
}

.product .zoomable {
    cursor: zoom-in;
}

/* Shared Card Styling (Product Hero, Tabs, Sidebar) */
.product-hero,
.product-tabs,
.product-sidebar,
.sidebar-card {
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6ebf1;
    background: #fff;
}

/* Shared Eyebrow Style */
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    margin-bottom: 4px;
}

/* Product Hero Section */
.product-hero {
    padding: 26px 28px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 65%);
}

.product-hero .eyebrow {
    color: #6b7280;
}

.product-hero .product-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 6px 0 10px;
    line-height: 1.3;
}

/* Product Details */
.sku-chip {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 6px 0 14px;
}

.product-description p {
    color: #4b5563;
    line-height: 1.7;
}

.product-image-frame {
    display: inline-block;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e6ebf1;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Product Actions & Pricing */
.product-actions {
    margin-top: 18px;
}

.product-cta,
.product-price-btn {
    border-radius: 10px;
    font-weight: 600;
}

.product-cta {
    width: 100%;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
}

.product-price {
    margin-top: 14px;
}

.product-price-btn {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
}

.product-price-btn:hover,
.product-price-btn:focus {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* Product Sidebar */
.product-sidebar,
.sidebar-card {
    padding: 20px 22px;
    background: linear-gradient(165deg, #f5f9ff 0%, #ffffff 60%, #fafbff 100%);
    color: #334155;
}

.product-sidebar h4,
.sidebar-card h4 {
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: bold;
}

.product-sidebar .eyebrow,
.sidebar-card .eyebrow {
    color: #64748b;
}

.product-sidebar .sidebar-links a,
.sidebar-card .sidebar-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    margin-bottom: 6px;
    background: rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.product-sidebar .sidebar-links a:hover,
.sidebar-card .sidebar-links a:hover {
    background: rgba(14, 165, 233, 0.12);
    padding-left: 16px;
    color: #0ea5e9;
    text-decoration: none;
}

/* Product Tabs */
.product-tabs {
    margin-top: 28px;
    padding: 18px 20px 12px;
}

.product-tabs .nav-tabs {
    border: 0;
    margin-bottom: 16px;
}

.product-tabs .nav-tabs>li>a {
    border: 0;
    margin-right: 8px;
    background: #f3f6fb;
    border-radius: 10px;
    padding: 10px 16px;
    color: #5b6b7b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-tabs .nav-tabs>li.active>a,
.product-tabs .nav-tabs>li.active>a:focus,
.product-tabs .nav-tabs>li.active>a:hover {
    background: #0ea5e9;
    color: #fff;
    border: 0;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.product-tabs .tab-content {
    padding: 16px 6px 6px;
    color: #4b5563;
    line-height: 1.7;
}

/* Related Products */
.related-section {
    margin-top: 40px;
}

.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.related-col {
    display: flex;
    margin-bottom: 30px;
}

.related-card {
    width: 100%;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    background: #fff;
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.related-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #bae6fd;
}

.related-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
    min-height: 160px;
}

.related-image-wrapper img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image-wrapper img {
    transform: scale(1.05);
}

.related-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

.related-title a {
    color: #334155;
    text-decoration: none;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-title a:hover {
    color: #0ea5e9;
}

/* Product Responsive Adjustments */
@media (max-width: 991px) {

    .product-sidebar,
    .sidebar-card {
        margin-bottom: 18px;
    }

    .product-hero {
        padding: 18px;
    }

    .product-price {
        text-align: left;
    }
}

/* ==========================================================================
   STORE - CATALOG
   ========================================================================== */

/* Catalog Search (Home Page) */
.catalog-search {
    max-width: 360px;
    margin-left: auto;
    padding-top: 10px;
}

.catalog-search .form-control {
    padding: 10px 12px;
    height: 40px;
}

.catalog-search .btn {
    padding: 10px 16px;
}

.catalog-search .btn i {
    margin-right: 6px;
}

/* Catalog Grid Layout */
.catalog-grid {
    display: flex;
    flex-wrap: wrap;
}

.catalog-grid>.col-md-3 {
    display: flex;
    margin-bottom: 20px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 320px;
    height: 100%;
    margin-bottom: 0;
}

.catalog-card .btn-add {
    margin-top: auto;
}

.catalog-toolbar {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Catalog Sidebar (Search Page) */
.catalog-sidebar .filter-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.catalog-sidebar .filter-categories li {
    margin-bottom: 8px;
    padding: 0;
}

.catalog-sidebar .filter-categories li label {
    font-weight: normal;
    padding-left: 6px;
    margin-bottom: 0;
}

.catalog-sidebar .filter-categories li input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}