/*
Theme Name: Uttam Electronics Divi Child
Theme URI: https://uttamelectronics.co.in/
Description: Reversible, bridge-managed storefront shell for Uttam Electronics. Requires Divi 4.27.4 and Uttam Structural Bridge.
Author: Uttam Electronics
Author URI: https://uttamelectronics.co.in/
Template: Divi
Version: 1.0.2
Text Domain: uttam-divi-child
*/

:root {
  --uttam-navy: #102a43;
  --uttam-blue: #1769e0;
  --uttam-blue-dark: #0d4faf;
  --uttam-gold: #f3a712;
  --uttam-ink: #12212f;
  --uttam-muted: #5f6f7f;
  --uttam-line: #dce4ec;
  --uttam-soft: #f5f8fc;
  --uttam-white: #ffffff;
  --uttam-success: #147d4c;
}

.uttam-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100001;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--uttam-white);
  color: var(--uttam-navy);
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.22);
}

.uttam-skip-link:focus { transform: translateY(0); }

body.uttam-header-enabled,
body.uttam-footer-enabled,
body.uttam-products-enabled {
  color: var(--uttam-ink);
}

/* Divi reserves space for its fixed header on #page-container. The packaged
 * header replaces that fixed header, so the spacer must exist only while the
 * Divi header is rendering. The bridge-owned body class keeps this reversible. */
body.uttam-header-enabled.et_fixed_nav #page-container {
  padding-top: 0 !important;
}

.uttam-header {
  position: relative;
  z-index: 9998;
  background: var(--uttam-white);
  box-shadow: 0 2px 14px rgba(16, 42, 67, 0.1);
}

.uttam-header__top {
  background: var(--uttam-navy);
  color: var(--uttam-white);
  font-size: 13px;
}

.uttam-header__top-inner,
.uttam-header__main,
.uttam-header__nav-inner,
.uttam-footer__inner,
.uttam-footer__bottom-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.uttam-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
}

.uttam-header__top a { color: var(--uttam-white); }
.uttam-header__top a:hover,
.uttam-header__top a:focus { color: #cfe2ff; }

.uttam-header__main {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding-block: 14px;
}

.uttam-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--uttam-navy);
}

.uttam-brand img,
.uttam-brand .custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 64px;
  object-fit: contain;
}

.uttam-brand__name {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.uttam-product-search .woocommerce-product-search {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--uttam-blue);
  border-radius: 10px;
  background: var(--uttam-white);
}

.uttam-product-search .search-field {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--uttam-ink);
  font-size: 15px;
}

.uttam-product-search button {
  min-width: 96px;
  border: 0;
  border-radius: 0;
  background: var(--uttam-blue);
  color: var(--uttam-white);
  font-weight: 700;
  cursor: pointer;
}

.uttam-product-search button:hover,
.uttam-product-search button:focus { background: var(--uttam-blue-dark); }

.uttam-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.uttam-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--uttam-line);
  border-radius: 9px;
  background: var(--uttam-white);
  color: var(--uttam-navy);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.uttam-action:hover,
.uttam-action:focus {
  border-color: var(--uttam-blue);
  color: var(--uttam-blue-dark);
}

.uttam-action--primary {
  border-color: var(--uttam-blue);
  background: var(--uttam-blue);
  color: var(--uttam-white);
}

.uttam-action--primary:hover,
.uttam-action--primary:focus {
  background: var(--uttam-blue-dark);
  color: var(--uttam-white);
}

.uttam-header__nav {
  border-top: 1px solid var(--uttam-line);
  background: var(--uttam-white);
}

.uttam-header__nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.uttam-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--uttam-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.uttam-header__nav a:hover,
.uttam-header__nav a:focus { color: var(--uttam-blue); }

.uttam-mobile-bar { display: none; }

.uttam-footer {
  margin-top: 56px;
  background: var(--uttam-navy);
  color: #dce8f4;
}

.uttam-footer__inner {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 1fr));
  gap: 42px;
  padding-block: 56px 44px;
}

.uttam-footer h2,
.uttam-footer h3 {
  margin: 0 0 15px;
  color: var(--uttam-white);
  font-weight: 800;
}

.uttam-footer h2 { font-size: 24px; }
.uttam-footer h3 { font-size: 16px; }
.uttam-footer p { color: #dce8f4; line-height: 1.7; }

.uttam-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uttam-footer li { margin: 0 0 10px; }
.uttam-footer a { color: #dce8f4; }
.uttam-footer a:hover,
.uttam-footer a:focus { color: var(--uttam-white); text-decoration: underline; }

.uttam-footer__contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.uttam-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b2136;
}

.uttam-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  color: #c6d6e5;
  font-size: 13px;
}

.uttam-product-assurance {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  background: #f3f8ff;
  color: var(--uttam-ink);
}

.uttam-product-assurance__gst {
  margin: 0 0 9px;
  color: var(--uttam-success);
  font-weight: 800;
}

.uttam-product-assurance__note {
  margin: 0;
  color: var(--uttam-muted);
  font-size: 13px;
  line-height: 1.55;
}

.uttam-product-help {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.uttam-products-enabled.single-product #main-content .container {
  width: min(1240px, calc(100% - 32px));
  padding-top: 38px;
}

body.uttam-products-enabled.single-product div.product .woocommerce-product-gallery,
body.uttam-products-enabled.single-product div.product .summary {
  margin-bottom: 32px;
}

body.uttam-products-enabled.single-product div.product .summary {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--uttam-line);
  border-radius: 14px;
  background: var(--uttam-white);
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

body.uttam-products-enabled.single-product .product_title {
  color: var(--uttam-navy);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.17;
}

body.uttam-products-enabled.single-product .summary .price {
  color: var(--uttam-blue-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

body.uttam-products-enabled.single-product .woocommerce-tabs,
body.uttam-products-enabled.single-product .related.products,
body.uttam-products-enabled.single-product .up-sells {
  clear: both;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .uttam-header__main {
    grid-template-columns: minmax(160px, 220px) 1fr;
  }

  .uttam-product-search { grid-column: 1 / -1; grid-row: 2; }
  .uttam-header__actions { grid-column: 2; grid-row: 1; }
  .uttam-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.uttam-header-enabled { padding-bottom: 64px; }

  .uttam-header__top-inner { justify-content: center; text-align: center; }
  .uttam-header__top-secondary { display: none; }

  .uttam-header__main {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 72px;
    padding-block: 10px;
  }

  .uttam-brand img,
  .uttam-brand .custom-logo { max-width: 165px; max-height: 50px; }
  .uttam-brand__name { font-size: 20px; }
  .uttam-header__actions .uttam-action:not(.uttam-action--cart) { display: none; }
  .uttam-product-search { grid-column: 1 / -1; }
  .uttam-product-search button { min-width: 82px; }

  .uttam-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    border-top: 1px solid var(--uttam-line);
    background: var(--uttam-white);
    box-shadow: 0 -5px 20px rgba(16, 42, 67, 0.14);
  }

  .uttam-mobile-bar a {
    display: grid;
    place-items: center;
    min-height: 46px;
    color: var(--uttam-navy);
    font-size: 12px;
    font-weight: 800;
  }

  .uttam-mobile-bar a:nth-child(2) { color: var(--uttam-success); }
  .uttam-footer__inner { grid-template-columns: 1fr; gap: 30px; padding-block: 42px 34px; }
  .uttam-footer__bottom-inner { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body.uttam-header-enabled *,
  body.uttam-header-enabled *::before,
  body.uttam-header-enabled *::after,
  body.uttam-footer-enabled *,
  body.uttam-footer-enabled *::before,
  body.uttam-footer-enabled *::after,
  body.uttam-products-enabled *,
  body.uttam-products-enabled *::before,
  body.uttam-products-enabled *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
	
	
}

