/* print_shop/static/print_shop/css/print_shop.css */

/* ==========================================================================
   STEPHEN LAWSON PHOTOGRAPHY — PRINT SHOP REDESIGN
   Fine Art Print Shop — Gallery & Detail Pages
   Uses .ps-* prefix to avoid conflicts with existing cart/checkout styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* New print shop design tokens */
  --ps-font-display : 'Playfair Display', Georgia, serif;
  --ps-font-body    : 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --ps-dark         : #1a1a1a;
  --ps-mid          : #6b6b6b;
  --ps-light        : #f5f5f5;
  --ps-border       : #e0e0e0;
  --ps-white        : #ffffff;
  --ps-transition   : 0.25s ease;
  /* Set by updateMockup() in print_shop_redesign.js — total frame+mat padding on both sides combined */
  --ps-frame-extra  : 0px;

  /* Legacy tokens (previously inherited from photo_app/styles.css) */
  --primary-blue    : #3897f0;
  --primary-green   : #4CAF50;
  --secondary-green : #45a049;
  --dark-color      : #333333;
  --light-color     : #f7f7f7;
  --off-white-color : rgb(224, 224, 224);
  --bg-color        : rgb(20, 20, 20);
  --card-color      : rgb(233, 232, 232);
  --transition      : all 300ms ease-in-out;
}

/* --------------------------------------------------------------------------
   NAV ADDITIONS — cart badge + print shop nav icon styles
   (These sit inside the existing .links ul from main.html)
   -------------------------------------------------------------------------- */

/* Cart icon — sits inside nav-header (always visible, not inside hamburger) */
.ps-nav-cart {
  position   : relative;
  display    : inline-flex;
  align-items: center;
  font-size  : 1.6rem;
  margin-left: 1.2rem;  /* separation from dark-mode icon */
  background : none;
  border     : none;
  color      : inherit;
  cursor     : pointer;
  padding    : 0.2rem;
}

/* Numeric badge on cart icon */
.ps-cart-badge {
  position       : absolute;
  top            : -7px;
  right          : -9px;
  background     : var(--primary-blue);
  color          : #fff;
  border-radius  : 50%;
  font-size      : 0.65rem;
  min-width      : 1.5rem;
  height         : 1.5rem;
  display        : flex;
  align-items    : center;
  justify-content: center;
  font-weight    : 700;
  line-height    : 1;
  pointer-events : none;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.ps-header {
  padding     : 3.2rem 2.4rem 2.4rem;
  text-align  : center;
  border-bottom: 1px solid var(--ps-border);
}

.ps-header-brand { margin-bottom: 2rem; }

.ps-logo-link {
  display        : inline-block;
  text-decoration: none;
  color          : inherit;
}

.ps-brand-name {
  font-family   : var(--ps-font-display);
  font-size     : clamp(2rem, 4vw, 3rem);
  font-weight   : 700;
  letter-spacing: -0.01em;
  margin        : 0;
  line-height   : 1.1;
  color         : var(--ps-dark);
}

.ps-tagline {
  font-family   : var(--ps-font-body);
  font-size     : 1.2rem;
  font-weight   : 300;
  color         : var(--ps-mid);
  margin        : 0.6rem 0 0;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.ps-nav {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 3rem;
}

.ps-nav-link {
  font-size     : 1.25rem;
  font-weight   : 400;
  color         : var(--ps-dark);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition    : opacity var(--ps-transition);
}

.ps-nav-link:hover { opacity: 0.45; }

.ps-nav-icon {
  font-size  : 1.7rem;
  line-height: 1;
  display    : flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   DJANGO MESSAGES (flash alerts)
   -------------------------------------------------------------------------- */
.ps-messages {
  max-width: 1200px;
  margin   : 0 auto;
  padding  : 1.2rem 2.4rem 0;
}

.ps-message {
  padding      : 1.2rem 1.6rem;
  margin-bottom: 0.8rem;
  border-radius: 2px;
  font-size    : 1.3rem;
}

.ps-message-success { background: #e8f5e9; color: #2e7d32; }
.ps-message-error   { background: #fce4ec; color: #c62828; }
.ps-message-info    { background: #e3f2fd; color: #1565c0; }
.ps-message-warning { background: #fff8e1; color: #f57f17; }

/* --------------------------------------------------------------------------
   GALLERY HOME — HERO HEADER (name + tagline above the grid)
   -------------------------------------------------------------------------- */
.ps-gallery-hero {
  text-align : center;
  padding    : 3.2rem 2rem 2.4rem;
}

.ps-gallery-hero-name {
  font-family   : var(--ps-font-display);
  font-size     : clamp(2rem, 4vw, 3rem);
  font-weight   : 700;
  letter-spacing: -0.01em;
  margin        : 0;
  line-height   : 1.1;
  color         : var(--ps-dark);
}

.ps-gallery-hero-tagline {
  font-family   : var(--ps-font-body);
  font-size     : 1.2rem;
  font-weight   : 300;
  color         : var(--ps-mid);
  margin        : 0.6rem 0 0;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

/* --------------------------------------------------------------------------
   GALLERY — MASONRY COLUMN LAYOUT
   -------------------------------------------------------------------------- */
.ps-gallery-section { display: block; }

.ps-gallery-grid {
  columns   : 3;
  column-gap: 0;
  margin    : 0;
  padding   : 0;
  line-height: 0;    /* collapse whitespace */
}

.ps-gallery-item {
  break-inside        : avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside   : avoid;
  display             : block;
  position            : relative;
  overflow            : hidden;
  cursor              : pointer;
}

.ps-gallery-item img {
  width      : 100%;
  height     : auto;
  display    : block;
  line-height: 0;
  transition : transform 0.45s ease;
}

.ps-gallery-item:hover img { transform: scale(1.025); }

/* "View All" footer link */
.ps-gallery-footer {
  text-align: center;
  padding   : 4rem 2.4rem;
  line-height: normal;
}

.ps-view-all-link {
  font-size     : 1.2rem;
  font-weight   : 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color         : var(--ps-dark);
  border-bottom : 1px solid var(--ps-dark);
  padding-bottom: 0.2rem;
  transition    : opacity var(--ps-transition);
}

.ps-view-all-link:hover { opacity: 0.45; }

/* Empty state */
.ps-gallery-empty {
  text-align: center;
  padding   : 8rem 2rem;
  color     : var(--ps-mid);
  font-size : 1.4rem;
  line-height: normal;
}

/* Pagination */
.ps-pagination {
  display        : flex;
  justify-content: center;
  align-items    : center;
  gap            : 0.6rem;
  padding        : 3.2rem 2.4rem;
  line-height    : normal;
  flex-wrap      : wrap;
}

.ps-page-link {
  display        : flex;
  align-items    : center;
  justify-content: center;
  min-width      : 3.6rem;
  height         : 3.6rem;
  padding        : 0 0.8rem;
  font-size      : 1.3rem;
  font-weight    : 500;
  color          : var(--ps-dark);
  border         : 1px solid transparent;
  transition     : all var(--ps-transition);
  text-decoration: none;
}

.ps-page-link:hover  { border-color: var(--ps-border); }
.ps-page-link.active {
  border-color: var(--ps-dark);
  background  : var(--ps-dark);
  color       : var(--ps-white);
}

/* --------------------------------------------------------------------------
   DETAIL PAGE — TOP BAR
   -------------------------------------------------------------------------- */
.ps-detail-topbar {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 1.4rem 2.4rem;
  border-bottom  : 1px solid var(--ps-border);
}

.ps-back-link {
  display        : inline-flex;
  align-items    : center;
  gap            : 0.6rem;
  font-size      : 1.3rem;
  font-weight    : 400;
  color          : var(--ps-dark);
  text-decoration: none;
  letter-spacing : 0.01em;
  transition     : opacity var(--ps-transition);
}

.ps-back-link:hover { opacity: 0.45; }

.ps-share-btn {
  display    : inline-flex;
  align-items: center;
  gap        : 0.5rem;
  font-size  : 1.4rem;
  color      : var(--ps-mid);
  cursor     : pointer;
  padding    : 0.4rem;
  transition : opacity var(--ps-transition);
}

.ps-share-btn:hover { opacity: 0.45; }

/* --------------------------------------------------------------------------
   DETAIL PAGE — BODY (sticky image + scrollable panel)
   -------------------------------------------------------------------------- */
.ps-detail-body {
  display   : flex;
  min-height: calc(100vh - 90px);
}

/* LEFT: sticky image column
   top: 90px accounts for the fixed site nav height */
.ps-detail-image-side {
  width     : 60%;
  position  : sticky;
  top       : 90px;
  height    : calc(100vh - 90px);
  overflow  : hidden;
  background: var(--ps-light);
  display   : flex;
  flex-direction: column;
  align-items   : center;
  justify-content: flex-start;
}

.ps-detail-title {
  font-family   : var(--ps-font-display);
  font-size     : clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight   : 500;
  letter-spacing: 0.02em;
  margin        : 0;
  color         : var(--ps-dark);
  text-align    : center;
  padding       : 2.4rem 2rem 1.6rem;
  flex-shrink   : 0;
  width         : 100%;
  line-height   : 1.3;
}

.ps-detail-image-wrapper {
  flex           : 1;
  width          : 100%;
  display        : flex;
  align-items    : center;
  justify-content: center;
  padding        : 1.6rem 2.4rem 2.4rem;
  overflow       : hidden;
}

.ps-detail-image-wrapper img {
  /* max-width uses 60vw (the column width) minus horizontal padding (2×2.4rem)
     minus any frame/mat extra set by JS. Using vw avoids the inline-flex
     containing-block ambiguity that caused landscape images to be height-
     constrained and then clipped into a portrait crop. */
  max-width : calc(60vw - 4.8rem - var(--ps-frame-extra));
  max-height: calc(100vh - 90px - 12rem - var(--ps-frame-extra));
  width     : auto;
  height    : auto;
  display   : block;
  transition: max-width 0.35s ease, max-height 0.35s ease;
}

/* --------------------------------------------------------------------------
   MATERIAL / FRAME / BORDER OPTION CARDS
   -------------------------------------------------------------------------- */

/* Card row container */
.ps-option-cards {
  display  : flex;
  flex-wrap: wrap;
  gap      : 0.8rem;
}

/* Individual card button */
.ps-option-card {
  flex           : 1 1 auto;
  min-width      : 0;
  padding        : 1rem 1.4rem;
  border         : 1.5px solid var(--ps-border);
  background     : var(--ps-white);
  font-family    : var(--ps-font-body);
  font-size      : 1.3rem;
  font-weight    : 400;
  color          : var(--ps-mid);
  cursor         : pointer;
  text-align     : center;
  transition     : border-color var(--ps-transition), color var(--ps-transition),
                   box-shadow var(--ps-transition);
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 0.6rem;
  line-height    : 1.3;
}

.ps-option-card:hover {
  border-color: #999;
  color       : var(--ps-dark);
}

.ps-option-card.selected {
  border-color: var(--ps-dark);
  color       : var(--ps-dark);
  font-weight : 500;
  box-shadow  : inset 0 0 0 1px var(--ps-dark);
}

/* Frame card colour swatches */
.ps-frame-swatch {
  display      : inline-block;
  width        : 1.2rem;
  height       : 1.2rem;
  border-radius: 50%;
  flex-shrink  : 0;
  border       : 1px solid rgba(0,0,0,0.12);
}

.ps-frame-swatch-black   { background: #1a1a1a; }
.ps-frame-swatch-white   { background: #f0f0f0; border-color: rgba(0,0,0,0.2); }
.ps-frame-swatch-natural { background: linear-gradient(135deg, #c8994e 0%, #a07830 100%); }

/* --------------------------------------------------------------------------
   MOCKUP PREVIEW — two-level: outer frame shell + inner mat/border shell
   -------------------------------------------------------------------------- */

/* Outer wrapper: becomes the visible frame when Framed is selected */
.ps-mockup-outer {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  flex-shrink    : 0;
  transition     : padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* Inner shell: becomes the white mat between image and frame, or a
   standalone border when unframed + border selected */
.ps-mockup-mat {
  display   : inline-flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.35s ease, background 0.35s ease;
}

/* ── Framed states ── */

.ps-mockup-outer.frame-black {
  padding   : 28px;
  background: linear-gradient(145deg, #555 0%, #1e1e1e 35%, #111 65%, #3a3a3a 100%);
  box-shadow:
    inset 4px 4px 10px rgba(255,255,255,0.09),
    inset -4px -4px 10px rgba(0,0,0,0.75),
    0 14px 36px rgba(0,0,0,0.65),
    0 4px 10px rgba(0,0,0,0.4);
}

.ps-mockup-outer.frame-white {
  padding   : 28px;
  background: linear-gradient(145deg, #fff 0%, #efefef 40%, #e4e4e4 65%, #f8f8f8 100%);
  box-shadow:
    inset 4px 4px 10px rgba(255,255,255,0.95),
    inset -4px -4px 10px rgba(0,0,0,0.14),
    0 10px 28px rgba(0,0,0,0.28),
    0 3px 8px rgba(0,0,0,0.16);
}

.ps-mockup-outer.frame-natural {
  padding   : 28px;
  background: linear-gradient(145deg, #d4a96a 0%, #b8893c 40%, #a07830 65%, #c8994e 100%);
  box-shadow:
    inset 4px 4px 10px rgba(255,255,255,0.22),
    inset -4px -4px 10px rgba(0,0,0,0.38),
    0 12px 32px rgba(0,0,0,0.5),
    0 4px 10px rgba(0,0,0,0.28);
}

/* White mat inside the frame (always applied when framed) */
.ps-mockup-outer.frame-black .ps-mockup-mat,
.ps-mockup-outer.frame-white .ps-mockup-mat,
.ps-mockup-outer.frame-natural .ps-mockup-mat {
  padding   : 22px;
  background: #f8f7f2;
}

/* ── Unframed border state ── */

.ps-mockup-outer.border-only .ps-mockup-mat {
  padding   : 20px;
  background: #f8f7f2;
}

/* RIGHT: scrollable order panel */
.ps-detail-panel {
  width        : 40%;
  min-height   : 100vh;
  padding      : 3.2rem 3.6rem;
  overflow-y   : auto;
  border-left  : 1px solid var(--ps-border);
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS
   -------------------------------------------------------------------------- */
.ps-form-group { margin-bottom: 2.4rem; }

.ps-form-label {
  display       : block;
  font-size     : 1.05rem;
  font-weight   : 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color         : var(--ps-dark);
  margin-bottom : 0.8rem;
}

.ps-select {
  width            : 100%;
  padding          : 1.2rem 3.2rem 1.2rem 1.2rem;
  border           : 1px solid var(--ps-border);
  background-color : var(--ps-white);
  font-family      : var(--ps-font-body);
  font-size        : 1.4rem;
  color            : var(--ps-dark);
  appearance       : none;
  -webkit-appearance: none;
  background-image : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat  : no-repeat;
  background-position: right 1.2rem center;
  border-radius      : 0;
  cursor             : pointer;
  transition         : border-color var(--ps-transition);
}

.ps-select:focus {
  outline     : none;
  border-color: var(--ps-dark);
}

/* Size row: select + in/cm toggle */
.ps-size-row {
  display    : flex;
  align-items: stretch;
}

.ps-size-row .ps-select { flex: 1; border-right: none; }

.ps-unit-toggle { display: flex; flex-shrink: 0; }

.ps-unit-btn {
  width      : 4.6rem;
  border     : 1px solid var(--ps-border);
  background : var(--ps-white);
  font-family: var(--ps-font-body);
  font-size  : 1.15rem;
  font-weight: 500;
  color      : var(--ps-mid);
  cursor     : pointer;
  transition : all var(--ps-transition);
}

.ps-unit-btn + .ps-unit-btn { border-left: none; }

.ps-unit-btn.active {
  background  : var(--ps-dark);
  color       : var(--ps-white);
  border-color: var(--ps-dark);
}

/* --------------------------------------------------------------------------
   ADD TO CART BUTTON
   -------------------------------------------------------------------------- */
.ps-add-to-cart-btn {
  display      : block;
  width        : 100%;
  padding      : 1.8rem 2.4rem;
  background   : var(--ps-dark);
  color        : var(--ps-white);
  border       : 2px solid var(--ps-dark);
  font-family  : var(--ps-font-body);
  font-size    : 1.4rem;
  font-weight  : 500;
  letter-spacing: 0.03em;
  cursor       : pointer;
  text-align   : center;
  transition   : all var(--ps-transition);
  margin-bottom: 2.4rem;
}

.ps-add-to-cart-btn:hover {
  background: var(--ps-white);
  color     : var(--ps-dark);
}

/* --------------------------------------------------------------------------
   ACCORDION
   -------------------------------------------------------------------------- */
.ps-accordion { margin-top: 0.8rem; }

.ps-accordion-item { border-top: 1px solid var(--ps-border); }
.ps-accordion-item:last-child { border-bottom: 1px solid var(--ps-border); }

.ps-accordion-trigger {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  width          : 100%;
  padding        : 1.6rem 0;
  background     : none;
  border         : none;
  font-family    : var(--ps-font-body);
  font-size      : 1.35rem;
  font-weight    : 500;
  color          : var(--ps-dark);
  cursor         : pointer;
  text-align     : left;
  letter-spacing : 0.02em;
  transition     : color var(--ps-transition);
}

.ps-accordion-trigger:hover { color: var(--ps-mid); }

.ps-accordion-icon {
  font-size  : 2rem;
  font-weight: 300;
  line-height: 1;
  color      : var(--ps-mid);
  transition : transform var(--ps-transition);
  flex-shrink: 0;
  margin-left: 1rem;
  font-style : normal;
}

.ps-accordion-item.open .ps-accordion-icon { transform: rotate(45deg); }

.ps-accordion-content {
  display    : none;
  padding    : 0 0 1.8rem;
  font-size  : 1.3rem;
  color      : var(--ps-mid);
  line-height: 1.8;
}

.ps-accordion-content p { margin: 0 0 0.8rem; }
.ps-accordion-content p:last-child { margin-bottom: 0; }
.ps-accordion-content ul { margin: 0.8rem 0 0; padding-left: 1.8rem; }
.ps-accordion-content li { margin-bottom: 0.4rem; }
.ps-accordion-content a { text-decoration: underline; }

.ps-accordion-item.open .ps-accordion-content { display: block; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ps-detail-image-side { width: 55%; }
  .ps-detail-panel { width: 45%; padding: 2.4rem 2.4rem; }

  .ps-detail-image-wrapper img {
    /* 55vw = column width at this breakpoint; 4.8rem = 2×2.4rem h-padding */
    max-width: calc(55vw - 4.8rem - var(--ps-frame-extra));
  }
}

@media (max-width: 768px) {
  .ps-gallery-grid { columns: 2; }

  .ps-detail-body {
    flex-direction: column;
    min-height    : auto;
  }

  .ps-detail-image-side {
    width   : 100%;
    height  : auto;
    position: static;
    overflow: visible; /* allow frame shadow to breathe on mobile */
  }

  .ps-detail-image-wrapper {
    padding : 1.6rem 2.4rem; /* extra horizontal room so frame doesn't hit edges */
    overflow: visible;       /* allow shadow to extend without clipping */
  }

  .ps-detail-image-wrapper img {
    /* use explicit vw so the calc resolves correctly through inline-flex parents */
    max-width : calc(100vw - 4.8rem - var(--ps-frame-extra));
    max-height: 55vh;
  }

  /* Slimmer frame + mat on mobile so they don't dwarf the image */
  .ps-mockup-outer.frame-black,
  .ps-mockup-outer.frame-white,
  .ps-mockup-outer.frame-natural {
    padding: 16px;
  }

  .ps-mockup-outer.frame-black .ps-mockup-mat,
  .ps-mockup-outer.frame-white .ps-mockup-mat,
  .ps-mockup-outer.frame-natural .ps-mockup-mat {
    padding: 10px;
  }

  .ps-mockup-outer.border-only .ps-mockup-mat {
    padding: 12px;
  }

  .ps-detail-panel {
    width      : 100%;
    min-height : auto;
    padding    : 2.4rem 1.6rem;
    border-left: none;
    border-top : 1px solid var(--ps-border);
  }

  .ps-nav { gap: 2rem; }

  /* Cart icon in nav-header: always visible on mobile */
  .ps-nav-cart {
    font-size: 1.8rem;
    padding  : 0.4rem;
  }
}

@media (max-width: 480px) {
  .ps-gallery-grid { columns: 1; }

  .ps-header { padding: 2.4rem 1.6rem 2rem; }

  .ps-brand-name { font-size: 2rem; }

  .ps-nav { gap: 1.6rem; flex-wrap: wrap; }

  .ps-detail-topbar { padding: 1.2rem 1.4rem; }

  .ps-detail-panel { padding: 2rem 1.4rem; }
}

/* --------------------------------------------------------------------------
   MINI-CART SLIDE-IN DRAWER
   -------------------------------------------------------------------------- */

/* Full-screen wrapper — hidden until .open is added */
.ps-cart-panel {
  position  : fixed;
  inset     : 0;
  z-index   : 1000;
  visibility: hidden;
}

.ps-cart-panel.open { visibility: visible; }

/* Dimmed overlay */
.ps-cart-overlay {
  position  : absolute;
  inset     : 0;
  background: rgba(0, 0, 0, 0.45);
  opacity   : 0;
  transition: opacity 0.3s ease;
}

.ps-cart-panel.open .ps-cart-overlay { opacity: 1; }

/* Drawer panel — slides in from the right */
.ps-cart-drawer {
  position      : absolute;
  top           : 0;
  right         : 0;
  bottom        : 0;
  width         : 400px;
  max-width     : 100vw;
  background    : #fff;
  display       : flex;
  flex-direction: column;
  transform     : translateX(100%);
  transition    : transform 0.3s ease;
  box-shadow    : -4px 0 24px rgba(0, 0, 0, 0.12);
}

.ps-cart-panel.open .ps-cart-drawer { transform: translateX(0); }

/* Header */
.ps-cart-drawer-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 1.8rem 2rem;
  border-bottom  : 1px solid var(--ps-border);
  flex-shrink    : 0;
}

.ps-cart-drawer-title {
  font-family: var(--ps-font-display);
  font-size  : 1.6rem;
  font-weight: 500;
  margin     : 0;
  color      : var(--ps-dark);
}

.ps-cart-drawer-close {
  background: none;
  border    : none;
  font-size : 1.6rem;
  color     : var(--ps-mid);
  cursor    : pointer;
  padding   : 0.4rem;
  transition: color var(--ps-transition);
}

.ps-cart-drawer-close:hover { color: var(--ps-dark); }

/* Scrollable body */
.ps-cart-drawer-body {
  flex      : 1;
  overflow-y: auto;
  padding   : 1.2rem 2rem;
}

.ps-cart-loading,
.ps-cart-empty {
  text-align: center;
  color     : var(--ps-mid);
  font-size : 1.3rem;
  padding   : 3rem 0;
}

/* Item list */
.ps-cart-item-list {
  list-style: none;
  margin    : 0;
  padding   : 0;
}

.ps-cart-item-row {
  display    : flex;
  align-items: flex-start;
  gap        : 1.2rem;
  padding    : 1.2rem 0;
  border-bottom: 1px solid var(--ps-border);
}

.ps-cart-item-row:last-child { border-bottom: none; }

.ps-cart-item-thumb {
  width       : 72px;
  height      : 72px;
  object-fit  : cover;
  flex-shrink : 0;
  border-radius: 2px;
}

.ps-cart-item-info {
  flex          : 1;
  min-width     : 0;
  display       : flex;
  flex-direction: column;
  gap           : 0.3rem;
}

.ps-cart-item-title {
  font-size    : 1.25rem;
  font-weight  : 500;
  color        : var(--ps-dark);
  white-space  : nowrap;
  overflow     : hidden;
  text-overflow: ellipsis;
}

.ps-cart-item-details {
  font-size  : 1.1rem;
  color      : var(--ps-mid);
  line-height: 1.4;
}

.ps-cart-item-controls {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  margin-top     : 0.4rem;
}

/* Qty stepper — shared by drawer and cart page */
.ps-cart-qty {
  display    : flex;
  align-items: center;
  gap        : 0.6rem;
}

.ps-cart-qty-btn {
  width          : 2.4rem;
  height         : 2.4rem;
  border         : 1px solid var(--ps-border);
  background     : var(--ps-white);
  color          : var(--ps-dark);
  font-size      : 1.4rem;
  line-height    : 1;
  cursor         : pointer;
  display        : flex;
  align-items    : center;
  justify-content: center;
  transition     : all var(--ps-transition);
}

.ps-cart-qty-btn:hover  { border-color: var(--ps-dark); }
.ps-cart-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ps-cart-qty-num {
  font-size  : 1.3rem;
  font-weight: 500;
  min-width  : 1.6rem;
  text-align : center;
  color      : var(--ps-dark);
}

.ps-cart-item-price {
  font-size  : 1.25rem;
  font-weight: 600;
  color      : var(--ps-dark);
}

.ps-cart-item-remove {
  background: none;
  border    : none;
  color     : var(--ps-mid);
  font-size : 1.2rem;
  cursor    : pointer;
  padding   : 0.2rem;
  flex-shrink: 0;
  transition: color var(--ps-transition);
}

.ps-cart-item-remove:hover { color: #c0392b; }

/* Footer */
.ps-cart-drawer-footer {
  padding     : 1.6rem 2rem;
  border-top  : 1px solid var(--ps-border);
  flex-shrink : 0;
}

.ps-cart-drawer-total {
  display        : flex;
  justify-content: space-between;
  font-size      : 1.4rem;
  font-weight    : 600;
  color          : var(--ps-dark);
  margin-bottom  : 1.4rem;
}

.ps-cart-checkout-btn {
  display       : block;
  width         : 100%;
  padding       : 1.4rem;
  background    : var(--ps-dark);
  color         : #fff;
  text-align    : center;
  font-family   : var(--ps-font-body);
  font-size     : 1.3rem;
  font-weight   : 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border        : none;
  cursor        : pointer;
  transition    : opacity 0.2s;
  margin-bottom : 0.8rem;
}

.ps-cart-checkout-btn:hover { opacity: 0.85; }

.ps-cart-continue-btn {
  display    : block;
  width      : 100%;
  padding    : 1.1rem;
  background : none;
  border     : 1px solid var(--ps-border);
  color      : var(--ps-mid);
  font-family: var(--ps-font-body);
  font-size  : 1.2rem;
  cursor     : pointer;
  transition : all 0.2s;
}

.ps-cart-continue-btn:hover {
  border-color: var(--ps-dark);
  color       : var(--ps-dark);
}

/* --------------------------------------------------------------------------
   CART PAGE (full /cart/ view)
   -------------------------------------------------------------------------- */
.ps-cart-page {
  max-width: 1100px;
  margin   : 0 auto;
  padding  : 0 2rem 5rem;
}

.ps-cart-page-topbar {
  display    : flex;
  align-items: baseline;
  gap        : 1rem;
  padding    : 2.4rem 0 1.6rem;
  border-bottom: 1px solid var(--ps-border);
  margin-bottom: 2rem;
}

.ps-cart-page-heading {
  font-family: var(--ps-font-display);
  font-size  : clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin     : 0;
  color      : var(--ps-dark);
}

.ps-cart-page-count {
  font-size : 1.2rem;
  color     : var(--ps-mid);
}

/* Two-column layout: items left, summary right */
.ps-cart-page-layout {
  display              : grid;
  grid-template-columns: 1fr 340px;
  gap                  : 3rem;
  align-items          : start;
}

/* Item rows */
.ps-cart-page-row {
  display    : grid;
  grid-template-columns: 80px 1fr auto auto 2.4rem;
  gap        : 1.4rem;
  align-items: center;
  padding    : 1.6rem 0;
  border-bottom: 1px solid var(--ps-border);
}

.ps-cart-page-row:first-child { border-top: 1px solid var(--ps-border); }

.ps-cart-page-thumb {
  width        : 80px;
  height       : 80px;
  object-fit   : cover;
  border-radius: 2px;
}

.ps-cart-page-info { min-width: 0; }

.ps-cart-page-title {
  font-size  : 1.3rem;
  font-weight: 500;
  color      : var(--ps-dark);
  margin     : 0 0 0.3rem;
}

.ps-cart-page-spec {
  font-size : 1.15rem;
  color     : var(--ps-mid);
  margin    : 0 0 0.2rem;
}

.ps-cart-page-unit {
  font-size : 1.15rem;
  color     : var(--ps-mid);
  margin    : 0;
}

.ps-cart-page-qty-wrap { justify-self: center; }

.ps-cart-page-item-total {
  font-size  : 1.3rem;
  font-weight: 600;
  color      : var(--ps-dark);
  white-space: nowrap;
}

.ps-cart-page-remove {
  background: none;
  border    : none;
  color     : var(--ps-mid);
  font-size : 1.3rem;
  cursor    : pointer;
  padding   : 0.2rem;
  transition: color var(--ps-transition);
}

.ps-cart-page-remove:hover { color: #c0392b; }

/* Summary sidebar */
.ps-cart-page-summary {
  background   : #fafafa;
  border       : 1px solid var(--ps-border);
  border-radius: 4px;
  padding      : 2rem;
  position     : sticky;
  top          : 110px;
}

.ps-cart-summary-heading {
  font-family  : var(--ps-font-display);
  font-size    : 1.5rem;
  font-weight  : 600;
  color        : var(--ps-dark);
  margin       : 0 0 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom : 1px solid var(--ps-border);
}

.ps-cart-summary-row {
  display        : flex;
  justify-content: space-between;
  font-size      : 1.25rem;
  color          : var(--ps-mid);
  margin-bottom  : 0.8rem;
}

.ps-cart-summary-row.ps-cart-summary-total {
  font-size  : 1.45rem;
  font-weight: 700;
  color      : var(--ps-dark);
  padding-top: 0.8rem;
  border-top : 1px solid var(--ps-border);
  margin-top : 0.4rem;
  margin-bottom: 1.6rem;
}

.ps-cart-continue-page-btn {
  display       : block;
  text-align    : center;
  padding       : 1rem;
  border        : 1px solid var(--ps-border);
  color         : var(--ps-mid);
  font-family   : var(--ps-font-body);
  font-size     : 1.2rem;
  text-decoration: none;
  margin-top    : 0.8rem;
  transition    : all 0.2s;
}

.ps-cart-continue-page-btn:hover {
  border-color: var(--ps-dark);
  color       : var(--ps-dark);
}

/* Cart page responsive */
@media (max-width: 860px) {
  .ps-cart-page-layout {
    grid-template-columns: 1fr;
  }
  .ps-cart-page-summary { position: static; }
}

@media (max-width: 560px) {
  .ps-cart-page-row {
    grid-template-columns: 72px 1fr auto;
    grid-template-rows   : auto auto;
    gap                  : 0.8rem 1.8rem;
  }
  .ps-cart-page-qty-wrap    { grid-column: 2; grid-row: 2; }
  .ps-cart-page-item-total  { grid-column: 3; grid-row: 2; }
  .ps-cart-page-remove      { grid-column: 3; grid-row: 1; align-self: start; }
  .ps-cart-page-thumb       { grid-row: span 2; width: 72px; height: 72px; }
}

/* ==========================================================================
   END REDESIGN STYLES — legacy cart/checkout styles below
   ========================================================================== */

/* Main container */
.print-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Hero section */
.print-shop-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
                url('../img/print-shop-hero.jpg') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero-content {
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.shop-now-btn, 
.shop-now-btn:link, 
.shop-now-btn:visited {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.shop-now-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Featured prints section */
.featured-prints, 
.print-options-overview, 
.shop-process {
    margin-bottom: 60px;
}

.featured-prints h2, 
.print-options-overview h2, 
.shop-process h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Print grid */
.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.print-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.print-card:hover {
    transform: translateY(-5px);
}

.print-card a {
    text-decoration: none;
    color: inherit;
}

.print-image {
    height: 250px;
    overflow: hidden;
}

.print-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.print-card:hover .print-img {
    transform: scale(1.05);
}

.print-info {
    padding: 20px;
    text-align: center;
}

.print-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.print-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Print options overview */
.print-options-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.option-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
}

.option-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.option-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.option-card p {
    color: #666;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.process-step {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.process-step p {
    color: #666;
    font-size: 0.9rem;
}

/* Print detail page */
.print-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start; /* Align items at the top */
  }

.print-detail-image,
.print-detail-info {
    display: flex;
    flex-direction: column;
    height: 100%; /* Set both columns to 100% height */
    min-height: 550px; /* Set a minimum height that works for your content */
}

.print-detail-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-img {
    width: 100%;
    height: auto;
    display: block;
}

.print-detail-info h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.print-description {
    margin-bottom: 30px;
    color: #666;
}

/* Print options form */
.print-options-form {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

.option-section {
    flex: 1; /* Make this section expand */
    }

.option-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.price-preview {
    background: white;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
  }

  .price-preview.updating {
    background-color: #f8f9fa;
  }

  #price-display {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
    transition: all 0.3s ease;
  }

  .price-preview small {
    color: #666;
    font-size: 0.9rem;
  }

/* Quantity control */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background: #e0e0e0;
}

#quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 10px;
    padding: 5px 0;
    border-radius: 5px;
}

/* Add to cart button */
.add-to-cart-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Shipping info */
.shipping-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.shipping-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.shipping-info p {
    color: #666;
}

/* Cart page */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-page h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 40px;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-details p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

.item-price, .item-total {
    font-weight: 600;
    color: var(--dark-color);
}

.update-btn, .remove-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.update-btn {
    background-color: #f0f0f0;
    color: #333;
}

.update-btn:hover {
    background-color: #e0e0e0;
}

.remove-btn {
    background-color: #f44336;
    color: white;
}

.remove-btn:hover {
    background-color: #e53935;
}

/* Cart summary */
.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn, .continue-shopping-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.checkout-btn {
    background-color: var(--primary-blue);
    color: white;
}

.checkout-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.continue-shopping-btn {
    background-color: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

.continue-shopping-btn:hover {
    background-color: #e0e0e0;
}

/* Empty cart */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

/* Checkout page */
.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-page h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.shipping-section, .order-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shipping-section h2, .order-summary h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-error {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Summary items in checkout */
.summary-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item .item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.summary-item .item-info {
    flex: 1;
    padding: 0 15px;
}

.summary-item .item-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.summary-item .item-info p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

.summary-item .item-price {
    font-weight: 600;
}

.payment-btn, .back-to-cart-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-decoration: none;
}

.payment-btn {
    background-color: var(--primary-blue);
    color: white;
}

.payment-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.back-to-cart-btn {
    background-color: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

.back-to-cart-btn:hover {
    background-color: #e0e0e0;
}

/* Payment page */
.payment-page {
    max-width: 800px;
    margin: 0 auto;
}

.payment-page h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.payment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.payment-form {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-form h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

#payment-element {
    margin-bottom: 20px;
}

#payment-message {
    color: #f44336;
    margin-bottom: 15px;
}

.payment-submit-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.payment-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.payment-submit-btn:disabled {
    background-color: #b0bec5;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none;
}

/* Payment success page */
.payment-success {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

.success-message {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-message i {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h1 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--dark-color);
}

.success-message p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.order-details h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.order-details p {
    margin: 5px 0;
    font-size: 1rem;
}

.next-steps {
    margin-top: 30px;
}

.view-orders-btn, .home-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    margin: 10px 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.view-orders-btn {
    background-color: var(--primary-blue);
    color: white;
}

.view-orders-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.home-btn {
    background-color: #f0f0f0;
    color: #333;
}

.home-btn:hover {
    background-color: #e0e0e0;
}

/* Order history page */
.order-history {
    max-width: 1000px;
    margin: 0 auto;
}

.order-history h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.order-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.order-card:hover {
    transform: translateY(-5px);
}

.order-header {
    background: #f0f0f0;
    padding: 15px 20px;
}

.order-header h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.order-header p {
    color: #666;
    font-size: 0.9rem;
}

.order-details {
    padding: 20px;
}

.status {
    margin-bottom: 15px;
}

.status-label {
    font-weight: 500;
}

.status-value {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-left: 5px;
}

.status-value.pending {
    background: #ffc107;
    color: #212121;
}

.status-value.processing {
    background: #2196f3;
    color: white;
}

.status-value.shipped {
    background: #9c27b0;
    color: white;
}

.status-value.delivered {
    background: #4caf50;
    color: white;
}

.status-value.cancelled {
    background: #f44336;
    color: white;
}

.order-footer {
    padding: 0 20px 20px;
}

.view-details-btn {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #333;
}

.view-details-btn:hover {
    background-color: #e0e0e0;
}

.no-orders {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-orders p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

/* Order detail page */
.order-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.order-detail-header {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.order-detail-header h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.order-detail-header p {
    color: #666;
    margin-bottom: 10px;
}

.order-detail-header .status {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 1rem;
}

.order-detail-sections {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.order-items-section, .order-info-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-items-section h2, .shipping-info h2, .order-summary h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shipping-info, .order-summary {
    margin-bottom: 30px;
}

.shipping-info p {
    margin: 5px 0;
    color: #666;
}

.order-actions {
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #333;
}

.back-btn:hover {
    background-color: #e0e0e0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .checkout-content, .payment-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .print-detail {
        grid-template-columns: 1fr;
    }

    .print-detail-image,
    .print-detail-info {
        min-height: auto; /* Reset min-height on smaller screens */
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .item-details, .item-price, .item-quantity, .item-total, .item-remove {
        grid-column: 2;
    }
    
    .order-detail-sections {
        grid-template-columns: 1fr;
    }
    
    .order-info-section {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .print-grid, .orders-list {
        grid-template-columns: 1fr;
    }
    
    .print-options-overview, .process-steps {
        grid-template-columns: 1fr;
    }
    
    .print-detail-header .status {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}

/* Print Preview Styles */
.print-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
    flex: 1; /* Take up remaining space */
    min-height: 400px; /* Ensure minimum height for preview */
  }
  
  .print-preview-container {
    position: relative;
    width: 550px; /* Increased from 400px */
    height: 450px; /* Increased from 300px */
    transition: all 0.3s ease;
    margin: 0 auto;
  }
  
  .frame-border {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .print-preview-container {
    position: relative !important;
    overflow: visible !important;
  }
  
  .matting-border {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .preview-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  /* Print detail layout fix */
  .print-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .print-detail-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content; /* Added this line to fix the extending issue */
  }
  
  /* Hide original detail image if you're not using it */
  .detail-img {
    display: none;
  }

  .frame-black-wood, .frame-white-wood, .frame-natural-wood {
    border-width: 25px !important; /* Increased from 20px */
  }
  
  /* Frame style variations */
  .frame-black-wood {
    border-color: #000;
    border-width: 20px;
  }

  .frame-black-metal, .frame-gold-metal {
    border-width: 15px !important; /* Increased from 10px */
  }
  
  .frame-white-wood {
    border-color: #fff;
    border-width: 20px;
  }
  
  .frame-natural-wood {
    border-color: #D2B48C;
    border-width: 20px;
  }
  
  .frame-black-metal {
    border-color: #000;
    border-width: 10px;
  }
  
  .frame-gold-metal {
    border-color: #D4AF37;
    border-width: 10px;
  }
  
  /* Matting style variations */
  .matting-white {
    border-color: #fff;
  }
  
  .matting-black {
    border-color: #000;
  }
  
  .matting-cream {
    border-color: #FFFDD0;
  }
  
  .matting-custom {
    border-color: #F0F0F0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .print-detail {
      grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .print-preview-wrapper {
      padding: 15px;
    }
    
    .print-preview-container {
      width: 300px;
      height: 225px;
    }
  }
  
  /* Print options section enhancement */
  .option-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  .option-section h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  /* Style option selections */
  .option-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  
  .option-select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 151, 240, 0.2);
  }
  
  @media (max-width: 1200px) {
    .print-preview-container {
      width: 450px;
      height: 350px;
    }
  }
  
  @media (max-width: 991px) {
    .print-preview-container {
      width: 400px;
      height: 300px;
    }
  }
  
  @media (max-width: 768px) {
    .print-preview-container {
      width: 350px;
      height: 280px;
    }
    
    .print-preview-wrapper {
      padding: 25px;
      min-height: 400px;
    }
    
    #price-display {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 576px) {
    .print-preview-container {
      width: 300px;
      height: 240px;
    }
  }

/* Enhanced breadcrumb styling -  */

.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    padding: 5px 0;
}

.breadcrumb-link:hover {
    color: #2980b9;
    text-decoration: underline;
    transform: translateY(-1px);
}

.breadcrumb-separator {
    color: #6c757d;
    margin: 0 10px;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
    padding: 5px 0;
}

/* Back button styling */
.breadcrumb-back {
    margin-left: auto; /* Push to right side */
    padding: 5px 0;
}

.breadcrumb-back-link {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    background-color: #e9ecef;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 13px;
}

.breadcrumb-back-link:hover {
    background-color: #dee2e6;
    color: #495057;
    transform: translateX(-3px);
}

.breadcrumb-back-link i {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 12px 0;
    }
    
    .breadcrumb-container {
        font-size: 13px;
        padding: 0 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breadcrumb-back {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .breadcrumb-back-link {
        display: block;
        text-align: center;
        padding: 8px 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
}

/* Add highlight for current section */
.breadcrumb-section-highlight {
    background-color: #f0f7ff;
    border-radius: 4px;
    padding: 5px 10px;
}