.dfshop * {
  box-sizing: border-box;
}

.dfshop {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #f6f6f4;
  position: relative;
  zoom: 0.95;
}

.dfshop .wp-block-post-title,
.dfshop h1.wp-block-post-title {
  display: none !important;
}

.dfshop-navtop {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0 18px;
  background: transparent;
}

body.admin-bar .dfshop-navtop {
  top: 50px;
}

.dfshop-navtop::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 102px;
  background: #f6f6f4;
  z-index: -1;
  pointer-events: none;
}

body.admin-bar .dfshop-navtop::after {
  height: 134px;
}

.dfshop-navtop__inner {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 82px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(229, 229, 226, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dfshop-navtop__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #111;
  min-height: 44px;
  max-width: 240px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}

.dfshop-navtop__logo:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.92;
}

.dfshop-navtop__logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.dfshop-navtop__logo span {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.dfshop-navtop__links {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex-wrap: nowrap;
}

.dfshop-navtop__links a {
  position: relative;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dfshop-navtop__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #111;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  border-radius: 999px;
}

.dfshop-navtop__links a:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.dfshop-navtop__links a:hover::after {
  transform: scaleX(1);
}

.dfshop-navtop__account-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  padding-right: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.dfshop-navtop__account-area--empty {
  min-width: 1px;
}

.dfshop-navtop__account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e5e1;
  border-radius: 16px;
  background: #fff;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dfshop-navtop__account-name {
  font-size: 12px;
  font-weight: 900;
  color: #111;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dfshop-navtop__account-logout {
  text-decoration: none;
  color: #b00020;
  font-size: 12px;
  font-weight: 900;
}

.dfshop-mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #e3e3df;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.dfshop-mobile-toggle span {
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  display: block;
}

.dfshop-mobile-overlay {
  display: none;
}

.dfshop-wrap {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 94px 18px 48px;
}

body.admin-bar .dfshop-wrap {
  padding-top: 126px;
}

.dfshop-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dfshop-sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  border: 1px solid #e6e6e3;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.05);
  z-index: 45;
}

body.admin-bar .dfshop-sidebar {
  top: 134px;
}

.dfshop-sidebar-inner {
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
}

.dfshop-sidebar-top {
  display: none;
}

.dfshop-toggle {
  display: none;
}

.dfshop-mobile-block {
  display: none;
}

.dfshop-mobile-account {
  display: none;
}

.dfshop-chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.dfshop-chip {
  border: 1px solid #ddddda;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dfshop-chip:hover {
  transform: translateY(-1px);
  border-color: #cfcfcb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.dfshop-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.dfshop-tarifa {
  display: none;
}

.dfshop-field {
  margin-top: 14px;
}

.dfshop-label {
  display: block;
  font-size: 12px;
  color: #6d6d6a;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dfshop-select,
.dfshop-input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #e3e3df;
  border-radius: 16px;
  outline: none;
  background: #fff;
  font-size: 14px;
  color: #111;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.dfshop-select:focus,
.dfshop-input:focus {
  border-color: #bebeba;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.dfshop-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  user-select: none;
  font-size: 15px;
}

.dfshop-check input {
  transform: scale(1.08);
}

.dfshop-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dfshop-btn {
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.dfshop-btn:hover {
  transform: translateY(-1px);
}

.dfshop-btn-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
}

.dfshop-btn-ghost {
  background: #fff;
  border-color: #ddd;
  color: #111;
}

.dfshop-meta {
  display: none;
}

.dfshop-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dfshop-toolbar {
  position: sticky;
  top: 102px;
  z-index: 50;
  display: grid;
  grid-template-columns: 230px minmax(240px, 1fr) 190px;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #e6e6e2;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.admin-bar .dfshop-toolbar {
  top: 134px;
}

.dfshop-toolbar::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  height: calc(100% + 8px);
  background: #f6f6f4;
  z-index: -1;
  border-radius: 24px 24px 0 0;
}

.dfshop-toolbar__left,
.dfshop-toolbar__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dfshop-select--toolbar,
.dfshop-input--toolbar,
.dfshop-select--count {
  background: #fff;
}

.dfshop-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-end;
}

.dfshop-error {
  display: none;
  color: #b00020;
  font-size: 14px;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid #f1c7ce;
  background: #fff7f8;
  border-radius: 16px;
}

.dfshop-grid-viewport {
  width: 100%;
}

.dfshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dfshop-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e9e9e5;
  background: #fff;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    opacity 0.24s ease;
  min-height: auto;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
}

.dfshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(17, 17, 17, 0.09);
  border-color: #dcdcd7;
}

.dfshop-img {
  position: relative;
  height: 220px;
  min-height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dfshop-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  display: block;
  transition: transform 0.28s ease;
  background: #fff;
}

.dfshop-card:hover .dfshop-img img {
  transform: scale(1.03);
}

.dfshop-like {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.dfshop-body {
  padding: 14px 16px 16px;
}

.dfshop-brand {
  font-size: 11px;
  color: #7b7b77;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dfshop-name {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.02em;
  min-height: 38px;
  text-decoration: none !important;
}

.dfshop-sku {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8b88;
  letter-spacing: 0.01em;
}

.dfshop-price-row {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.dfshop-price {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.dfshop-stock {
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: #16a34a;
}

.dfshop-stock.out-of-stock {
  background: #dc2626;
  color: #fff;
}

.dfshop-more {
  display: flex;
  justify-content: center;
  margin: 34px 0 0;
}

.dfshop-more button {
  padding: 15px 24px;
  border-radius: 999px;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.14);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.dfshop-more button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(17, 17, 17, 0.18);
}

/* =========================
   FICHA DE PRODUCTO
   ========================= */

html:has(.dfp),
body:has(.dfp) {
  overflow: hidden;
  background: #f6f6f4 !important;
}

#df-product-root {
  width: 100%;
}

.dfp {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  max-width: 1320px;
  margin: 0 auto;
  padding: 98px 14px 14px;
  color: #111;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f6f4;
}

body.admin-bar .dfp {
  padding-top: 130px;
}

.dfp * {
  box-sizing: border-box;
}

.dfp .df-cart-fab {
  display: none !important;
}

.dfp-error {
  display: none;
  color: #b00020;
  font-size: 13px;
  margin: 6px 0 10px;
  text-align: center;
}

.dfp-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.dfp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.dfp-card {
  border: 1px solid #e8e8e4;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.03);
  min-height: 0;
}

.dfp-media {
  padding: 12px;
  background: linear-gradient(180deg, #fafaf8 0%, #f5f5f3 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dfp-mainimg {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eeeeea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.dfp-mainimg::before {
  display: none !important;
  content: none !important;
}

.dfp-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform 0.22s ease;
}

.dfp-mainimg:hover img {
  transform: scale(1.01);
}

.dfp-mainnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.dfp-mainnav:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.dfp-mainnav--prev {
  left: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
}

.dfp-mainnav--next {
  right: 18px;
  background: #cf2f6b;
  color: #fff;
}

.dfp-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 0 0;
  flex-wrap: nowrap;
  overflow: hidden;
  flex: 0 0 auto;
}

.dfp-thumbs button {
  width: 48px;
  height: 48px;
  border: 1px solid #e9e9e5;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f6 100%);
  padding: 5px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.025);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}

.dfp-thumbs button:hover {
  transform: translateY(-1px);
  border-color: #cfcfc9;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.dfp-thumbs button.active {
  border-color: #4b4b47;
  box-shadow: 0 6px 10px rgba(17, 17, 17, 0.07);
  background: linear-gradient(180deg, #ffffff 0%, #f2f2ef 100%);
}

.dfp-thumbs button:focus,
.dfp-thumbs button:focus-visible {
  outline: none;
  border-color: #4b4b47;
  box-shadow: 0 0 0 3px rgba(75, 75, 71, 0.12);
}

.dfp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dfp-info {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.dfp-brand {
  font-size: 10px;
  color: #6f6f6a;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dfp-name {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 950;
  line-height: 0.94;
  margin-top: 6px;
  letter-spacing: -0.05em;
  color: #111;
}

.dfp-sku {
  margin-top: 8px;
  color: #7d7d78;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.dfp-price {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
  color: #111;
}

.dfp-stock {
  display: none;
}

.dfp-sizes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0ec;
  overflow: hidden;
}

.dfp-sizes-title {
  font-size: 10px;
  color: #6d6d6a;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dfp-sizes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.dfp-size {
  border: 1px solid #e2e2de;
  background: #fff;
  color: #4c4c48;
  border-radius: 12px;
  padding: 8px 6px;
  font-weight: 900;
  cursor: pointer;
  min-height: 36px;
  text-align: center;
  font-size: 11px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dfp-size:hover {
  transform: translateY(-1px);
  border-color: #c7c7c1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.035);
  color: #2f2f2c;
}

.dfp-size:focus,
.dfp-size:focus-visible {
  outline: none;
  border-color: #4b4b47;
  box-shadow: 0 0 0 3px rgba(75, 75, 71, 0.12);
}

.dfp-size.disabled {
  opacity: 0.42;
  text-decoration: none;
  cursor: not-allowed;
  box-shadow: none;
  color: #8b8b86;
}

.dfp-size.active {
  background: #e6a9c0;
  color: #fff;
  border-color: #e6a9c0;
  opacity: 1;
  box-shadow: 0 8px 14px rgba(230, 169, 192, 0.20);
}

.dfp-guide {
  margin-top: 10px;
}

.dfp-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddddda;
  background: #fff;
  color: #4a4a46;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dfp-guide-btn:hover {
  transform: translateY(-1px);
  border-color: #c9c9c4;
  background: #fafaf8;
  color: #2f2f2c;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.035);
}

.dfp-qty {
  margin-top: 10px;
}

.dfp-qty label {
  display: block;
  font-size: 10px;
  color: #6d6d6a;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dfp-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddddda;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.dfp-qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.dfp-qty-input {
  width: 58px;
  height: 40px;
  border: 0;
  border-left: 1px solid #eeeeea;
  border-right: 1px solid #eeeeea;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  background: #fff;
}

.dfp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dfp-btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 13px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dfp-btn:hover {
  transform: translateY(-1px);
}

.dfp-btn-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 14px rgba(17, 17, 17, 0.10);
}

.dfp-btn-ghost {
  background: #fff;
  border-color: #ddddda;
  color: #4a4a46;
}

.dfp-foot,
#dfp-sizes-hint {
  display: none !important;
}

.dfp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.dfp-modal.show {
  display: flex;
}

.dfp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dfp-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.dfp-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0ec;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dfp-modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111;
}

.dfp-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #ddddda;
  background: #fff;
  color: #4a4a46;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.dfp-modal-close:hover {
  transform: translateY(-1px);
  border-color: #c9c9c4;
  background: #fafaf8;
}

.dfp-modal-body {
  padding: 20px;
  color: #3f3f3b;
  font-size: 15px;
  line-height: 1.7;
}

.dfp-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dfp-guide-card {
  border: 1px solid #ecece8;
  border-radius: 18px;
  padding: 14px;
  background: #fafaf8;
}

.dfp-guide-card strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b67;
  margin-bottom: 6px;
}

.dfp-guide-card span {
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

@media (max-width: 1380px) {
  .dfshop-wrap {
    max-width: 1320px;
  }

  .dfshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dfshop-img {
    height: 210px;
    min-height: 210px;
  }

  .dfshop-navtop__account-area {
    gap: 12px;
    padding-right: 10px;
  }

  .dfshop-navtop__links {
    gap: 20px;
  }

  .dfp {
    max-width: 1240px;
  }
}

@media (max-width: 1180px) {
  .dfshop-navtop__inner {
    gap: 12px;
    padding: 0 74px 0 18px;
  }

  .dfshop-navtop__account-area {
    gap: 10px;
    padding-right: 8px;
  }

  .dfshop-navtop__links {
    gap: 16px;
  }

  .dfshop-navtop__links a {
    font-size: 13px;
  }

  .dfshop-navtop__account-card {
    padding: 9px 12px;
    gap: 10px;
  }

  .dfshop-navtop__account-name {
    max-width: 160px;
    font-size: 11px;
  }

  .dfshop-navtop__account-logout {
    font-size: 11px;
  }

  .dfp {
    padding: 98px 10px 10px;
    max-width: 1160px;
  }

  body.admin-bar .dfp {
    padding-top: 130px;
  }

  .dfp-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    gap: 12px;
  }

  .dfp-name {
    font-size: clamp(18px, 2.2vw, 28px);
  }

  .dfp-price {
    font-size: clamp(24px, 2.8vw, 34px);
  }
}

@media (max-width: 1080px) {
  .dfshop-navtop__inner {
    gap: 10px;
    padding: 0 70px 0 16px;
  }

  .dfshop-navtop__logo img {
    max-height: 42px;
    max-width: 148px;
  }

  .dfshop-navtop__links {
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
  }

  .dfshop-navtop__links::-webkit-scrollbar {
    display: none;
  }

  .dfshop-navtop__links a {
    font-size: 12px;
    flex: 0 0 auto;
  }

  .dfshop-navtop__account-area {
    gap: 8px;
    padding-right: 6px;
    flex: 0 0 auto;
  }

  .dfshop-navtop__account-card {
    padding: 8px 10px;
    gap: 8px;
  }

  .dfshop-navtop__account-name {
    max-width: 120px;
    font-size: 10px;
  }

  .dfshop-navtop__account-logout {
    font-size: 10px;
  }

  .dfshop-layout {
    grid-template-columns: 1fr;
  }

  .dfshop-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
  }

  body.admin-bar .dfshop-sidebar {
    top: auto;
    min-height: auto;
  }

  .dfshop-toolbar {
    position: sticky;
    top: 96px;
    grid-template-columns: 1fr 1fr;
  }

  .dfshop-toolbar::before {
    top: -6px;
    height: calc(100% + 6px);
  }

  body.admin-bar .dfshop-toolbar {
    top: 128px;
  }

  .dfshop-nav {
    grid-column: 1 / -1;
  }

  .dfp {
    padding: 98px 10px 12px;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body.admin-bar .dfp {
    padding-top: 130px;
  }

  .dfp-shell {
    height: auto;
  }

  .dfp-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dfp-mainimg {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .dfshop {
    zoom: 1;
  }

  .dfshop-navtop {
    top: 12px;
    padding: 0 16px;
  }

  body.admin-bar .dfshop-navtop {
    top: 58px;
  }

  .dfshop-navtop::after {
    height: 96px;
  }

  body.admin-bar .dfshop-navtop::after {
    height: 132px;
  }

  .dfshop-navtop__inner {
    max-width: 100%;
    min-height: 70px;
    padding: 0 74px 0 18px;
    border-radius: 24px;
    gap: 10px;
  }

  .dfshop-navtop__logo img {
    max-height: 38px;
    max-width: 136px;
  }

  .dfshop-navtop__links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
  }

  .dfshop-navtop__links::-webkit-scrollbar {
    display: none;
  }

  .dfshop-navtop__links a {
    font-size: 11px;
    flex: 0 0 auto;
  }

  .dfshop-navtop__account-area {
    display: flex;
    margin-left: 0;
    padding-right: 4px;
    flex: 0 0 auto;
  }

  .dfshop-navtop__account-card {
    display: none;
  }

  .dfshop-mobile-toggle {
    display: inline-flex;
  }

  .dfshop-sidebar {
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 500;
    border-radius: 24px;
    min-height: auto;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow: auto;
  }

  body.admin-bar .dfshop-sidebar {
    top: 126px;
  }

  .dfshop-sidebar.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dfshop-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2;
  }

  .dfshop-sidebar-top strong {
    font-size: 18px;
    font-weight: 900;
  }

  .dfshop-toggle {
    display: inline-flex;
    border: 1px solid #ddd;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
  }

  .dfshop-mobile-account {
    display: block;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e7e7e3;
    border-radius: 18px;
    background: #fafaf8;
  }

  .dfshop-mobile-account__name {
    font-size: 14px;
    font-weight: 900;
    color: #111;
    margin-bottom: 12px;
    word-break: break-word;
  }

  .dfshop-mobile-account__links {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .dfshop-mobile-account__links a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 800;
  }

  .dfshop-mobile-account__logout {
    display: inline-block;
    text-decoration: none;
    color: #b00020;
    font-size: 14px;
    font-weight: 900;
  }

  .dfshop-mobile-block {
    display: block;
    margin-bottom: 14px;
  }

  .dfshop-toolbar {
    display: none;
  }

  .dfshop-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.35);
    z-index: 450;
  }

  .dfshop-mobile-overlay.show {
    display: block;
  }

  .dfshop-wrap {
    padding: 92px 16px 38px;
  }

  body.admin-bar .dfshop-wrap {
    padding-top: 136px;
  }

  .dfshop-grid {
    grid-template-columns: 1fr;
  }

  .dfshop-img {
    height: 230px;
    min-height: 230px;
  }

  html:has(.dfp),
  body:has(.dfp) {
    overflow: auto;
  }

  .dfp {
    padding: 92px 10px 16px;
    min-height: 100svh;
    height: auto;
    display: block;
    overflow: visible;
  }

  body.admin-bar .dfp {
    padding-top: 136px;
  }

  .dfp-shell {
    height: auto;
    display: block;
  }

  .dfp-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dfp-mainimg {
    min-height: 300px;
  }

  .dfp-thumbs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dfp-mainnav {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .dfp-mainnav--prev {
    left: 12px;
  }

  .dfp-mainnav--next {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .dfshop-navtop {
    top: 10px;
    padding: 0 12px;
  }

  body.admin-bar .dfshop-navtop {
    top: 56px;
  }

  .dfshop-navtop::after {
    height: 90px;
  }

  body.admin-bar .dfshop-navtop::after {
    height: 126px;
  }

  .dfshop-navtop__inner {
    min-height: 66px;
    padding: 0 64px 0 14px;
    align-items: center;
    gap: 8px;
  }

  .dfshop-navtop__logo img {
    max-height: 34px;
    max-width: 122px;
  }

  .dfshop-navtop__links {
    gap: 8px;
  }

  .dfshop-navtop__links a {
    font-size: 10px;
  }

  .dfshop-wrap {
    padding: 84px 12px 28px;
  }

  body.admin-bar .dfshop-wrap {
    padding-top: 128px;
  }

  .dfshop-sidebar {
    top: 84px;
  }

  body.admin-bar .dfshop-sidebar {
    top: 120px;
  }

  .dfshop-sidebar-inner {
    padding: 16px;
  }

  .dfshop-img {
    height: 210px;
    min-height: 210px;
  }

  .dfshop-name {
    min-height: auto;
  }

  .dfp {
    padding: 84px 8px 14px;
  }

  body.admin-bar .dfp {
    padding-top: 128px;
  }

  .dfp-mainimg {
    min-height: 240px;
    border-radius: 16px;
  }

  .dfp-media {
    padding: 10px;
  }

  .dfp-info {
    padding: 14px 12px 12px;
  }

  .dfp-name {
    font-size: 24px;
    line-height: 0.96;
  }

  .dfp-price {
    font-size: 32px;
  }

  .dfp-thumbs button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .dfp-sizes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dfp-size {
    min-height: 34px;
    padding: 7px 4px;
    font-size: 10px;
    border-radius: 10px;
  }

  .dfp-btn {
    width: 100%;
  }

  .dfp-guide-btn {
    width: 100%;
    justify-content: center;
  }

  .dfp-modal {
    padding: 12px;
  }

  .dfp-modal-dialog {
    max-height: 88vh;
    border-radius: 22px;
  }

  .dfp-modal-head {
    padding: 16px;
  }

  .dfp-modal-body {
    padding: 16px;
  }
}