array( 'label' => __( 'Burgundy Estate', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Deep pinot burgundy, warm parchment cards, serif headings — classic cellar.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Cormorant Garamond', 'font_body_key' => 'google:DM Sans', 'brand' => array( 'primary_color' => '#6b1e2a', 'primary_color_dark' => '#4a121c', 'primary_color_focus' => 'rgba(107, 30, 42, 0.22)', 'primary_button_bg' => '#6b1e2a', 'primary_button_bg_hover' => '#4a121c', 'primary_button_text_color' => '#ffffff', 'alt_button_bg' => '#f0e6dc', 'alt_button_bg_hover' => '#e4d5c7', 'alt_button_text_color' => '#2a1f1c', 'text_color' => '#2a1f1c', 'alt_text_color' => '#5c4e46', 'link_color' => '#6b1e2a', 'header_text_color' => '#2a1f1c', 'heading_text_color' => '#1c1412', 'heading_font_family' => '"Cormorant Garamond", Georgia, serif', 'font_family' => '"DM Sans", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '2px', 'field_border_radius' => '2px', 'field_border_color' => '#c4b5a8', 'bg_alt' => '#f7f2ec', 'block_bg' => '#ffffff', 'block_border_color' => '#e8dfd6', 'cart_count_bg' => '#6b1e2a', 'cart_count_text_color' => '#ffffff', ), ), 'champagne_gold' => array( 'label' => __( 'Champagne Gold', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Antique gold CTAs, charcoal body text — premium tasting-room (readable on light pages).', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Playfair Display', 'font_body_key' => 'google:DM Sans', 'brand' => array( 'primary_color' => '#9a7b3c', 'primary_color_dark' => '#7a5f2a', 'primary_color_focus' => 'rgba(154, 123, 60, 0.25)', 'primary_button_bg' => '#9a7b3c', 'primary_button_bg_hover' => '#7a5f2a', 'primary_button_text_color' => '#1a1714', 'alt_button_bg' => '#efe8dc', 'alt_button_bg_hover' => '#e2d8c8', 'alt_button_text_color' => '#2c2825', 'text_color' => '#2c2825', 'alt_text_color' => '#5c564e', 'link_color' => '#7a5f2a', 'header_text_color' => '#2c2825', 'heading_text_color' => '#1a1714', 'heading_font_family' => '"Playfair Display", Georgia, serif', 'font_family' => '"DM Sans", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '0px', 'field_border_radius' => '0px', 'field_border_color' => '#c9c0b2', 'bg_alt' => '#f6f1e8', 'block_bg' => '#ffffff', 'block_border_color' => '#e6dfd2', 'cart_count_bg' => '#9a7b3c', 'cart_count_text_color' => '#1a1714', ), ), // Kept key so existing “Dark Elegant” Apply still works — now readable. 'dark_elegant' => array( 'label' => __( 'Noir & Brass', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Near-black buttons with brass gold — dark accents, never washed-out grey text.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Playfair Display', 'font_body_key' => 'google:Source Sans 3', 'brand' => array( 'primary_color' => '#1c1a18', 'primary_color_dark' => '#0d0c0b', 'primary_color_focus' => 'rgba(184, 148, 74, 0.28)', 'primary_button_bg' => '#1c1a18', 'primary_button_bg_hover' => '#0d0c0b', 'primary_button_text_color' => '#f4ead0', 'alt_button_bg' => '#b8944a', 'alt_button_bg_hover' => '#9a7b3c', 'alt_button_text_color' => '#1c1a18', 'text_color' => '#242220', 'alt_text_color' => '#5a554c', 'link_color' => '#8a6d2e', 'header_text_color' => '#1c1a18', 'heading_text_color' => '#121110', 'heading_font_family' => '"Playfair Display", Georgia, serif', 'font_family' => '"Source Sans 3", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '0px', 'field_border_radius' => '0px', 'field_border_color' => '#b8b0a4', 'bg_alt' => '#f3efe8', 'block_bg' => '#ffffff', 'block_border_color' => '#ddd6cb', 'cart_count_bg' => '#b8944a', 'cart_count_text_color' => '#1c1a18', ), ), 'vineyard_olive' => array( 'label' => __( 'Vineyard Olive', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Olive leaf & terracotta — Sonoma hillside, earthy and refined.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Libre Baskerville', 'font_body_key' => 'google:DM Sans', 'brand' => array( 'primary_color' => '#4a5c3a', 'primary_color_dark' => '#35422a', 'primary_color_focus' => 'rgba(74, 92, 58, 0.25)', 'primary_button_bg' => '#4a5c3a', 'primary_button_bg_hover' => '#35422a', 'primary_button_text_color' => '#f7f4ef', 'alt_button_bg' => '#e8d5c4', 'alt_button_bg_hover' => '#dcc4ad', 'alt_button_text_color' => '#3a2e26', 'text_color' => '#2e2a24', 'alt_text_color' => '#5e574c', 'link_color' => '#4a5c3a', 'header_text_color' => '#2e2a24', 'heading_text_color' => '#1f1c18', 'heading_font_family' => '"Libre Baskerville", Georgia, serif', 'font_family' => '"DM Sans", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '3px', 'field_border_radius' => '3px', 'field_border_color' => '#b7b0a3', 'bg_alt' => '#f4f1ea', 'block_bg' => '#ffffff', 'block_border_color' => '#e0d9ce', 'cart_count_bg' => '#4a5c3a', 'cart_count_text_color' => '#f7f4ef', ), ), 'cabernet_slate' => array( 'label' => __( 'Cabernet Slate', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Ink-slate buttons, soft blush accents — modern cellar luxury.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Cormorant Garamond', 'font_body_key' => 'google:Lato', 'brand' => array( 'primary_color' => '#3d2c35', 'primary_color_dark' => '#2a1d24', 'primary_color_focus' => 'rgba(61, 44, 53, 0.22)', 'primary_button_bg' => '#3d2c35', 'primary_button_bg_hover' => '#2a1d24', 'primary_button_text_color' => '#faf6f4', 'alt_button_bg' => '#f0e4e0', 'alt_button_bg_hover' => '#e4d4cf', 'alt_button_text_color' => '#3d2c35', 'text_color' => '#2a2428', 'alt_text_color' => '#62565c', 'link_color' => '#3d2c35', 'header_text_color' => '#2a2428', 'heading_text_color' => '#1a1518', 'heading_font_family' => '"Cormorant Garamond", Georgia, serif', 'font_family' => 'Lato, system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '4px', 'field_border_radius' => '4px', 'field_border_color' => '#c4b8bc', 'bg_alt' => '#f7f2f0', 'block_bg' => '#ffffff', 'block_border_color' => '#e8e0de', 'cart_count_bg' => '#3d2c35', 'cart_count_text_color' => '#faf6f4', ), ), 'bordeaux_velvet' => array( 'label' => __( 'Bordeaux Velvet', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Rich merlot red, cream surfaces, high-contrast body copy.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:EB Garamond', 'font_body_key' => 'google:Source Sans 3', 'brand' => array( 'primary_color' => '#7a1f2e', 'primary_color_dark' => '#56141f', 'primary_color_focus' => 'rgba(122, 31, 46, 0.22)', 'primary_button_bg' => '#7a1f2e', 'primary_button_bg_hover' => '#56141f', 'primary_button_text_color' => '#ffffff', 'alt_button_bg' => '#f5ebe4', 'alt_button_bg_hover' => '#eadcd2', 'alt_button_text_color' => '#3a2428', 'text_color' => '#2e2224', 'alt_text_color' => '#625054', 'link_color' => '#7a1f2e', 'header_text_color' => '#2e2224', 'heading_text_color' => '#1c1214', 'heading_font_family' => '"EB Garamond", Georgia, serif', 'font_family' => '"Source Sans 3", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '2px', 'field_border_radius' => '2px', 'field_border_color' => '#c9b6b8', 'bg_alt' => '#f8f3ef', 'block_bg' => '#ffffff', 'block_border_color' => '#eadfdb', 'cart_count_bg' => '#7a1f2e', 'cart_count_text_color' => '#ffffff', ), ), 'sonoma_mist' => array( 'label' => __( 'Sonoma Mist', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Sage & fog — cool coastal AVA, soft cards, crisp charcoal text.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Lora', 'font_body_key' => 'google:Work Sans', 'brand' => array( 'primary_color' => '#3d5a56', 'primary_color_dark' => '#2c4240', 'primary_color_focus' => 'rgba(61, 90, 86, 0.25)', 'primary_button_bg' => '#3d5a56', 'primary_button_bg_hover' => '#2c4240', 'primary_button_text_color' => '#f5f8f7', 'alt_button_bg' => '#e4ecea', 'alt_button_bg_hover' => '#d2dedb', 'alt_button_text_color' => '#2c4240', 'text_color' => '#243230', 'alt_text_color' => '#556663', 'link_color' => '#3d5a56', 'header_text_color' => '#243230', 'heading_text_color' => '#1a2423', 'heading_font_family' => 'Lora, Georgia, serif', 'font_family' => '"Work Sans", system-ui, sans-serif', 'font_size' => '18px', 'button_border_radius' => '6px', 'field_border_radius' => '6px', 'field_border_color' => '#aebcba', 'bg_alt' => '#f2f6f5', 'block_bg' => '#ffffff', 'block_border_color' => '#dce5e3', 'cart_count_bg' => '#3d5a56', 'cart_count_text_color' => '#f5f8f7', ), ), 'modern_minimal' => array( 'label' => __( 'Modern Cellar', '7labs-debug-branding-for-commerce7' ), 'description' => __( 'Ink black, gallery white — clean DTC shop with strong contrast.', '7labs-debug-branding-for-commerce7' ), 'font_heading_key' => 'google:Inter', 'font_body_key' => 'google:Inter', 'brand' => array( 'primary_color' => '#161616', 'primary_color_dark' => '#000000', 'primary_color_focus' => 'rgba(22, 22, 22, 0.18)', 'primary_button_bg' => '#161616', 'primary_button_bg_hover' => '#000000', 'primary_button_text_color' => '#ffffff', 'alt_button_bg' => '#efefef', 'alt_button_bg_hover' => '#e2e2e2', 'alt_button_text_color' => '#161616', 'text_color' => '#1a1a1a', 'alt_text_color' => '#555555', 'link_color' => '#161616', 'header_text_color' => '#161616', 'heading_text_color' => '#0a0a0a', 'heading_font_family' => 'Inter, system-ui, sans-serif', 'font_family' => 'Inter, system-ui, sans-serif', 'font_size' => '17px', 'button_border_radius' => '6px', 'field_border_radius' => '6px', 'field_border_color' => '#bdbdbd', 'bg_alt' => '#f5f5f5', 'block_bg' => '#ffffff', 'block_border_color' => '#e8e8e8', 'cart_count_bg' => '#161616', 'cart_count_text_color' => '#ffffff', ), ), ); } /** * Apply a preset by key. * * @param string $key Preset key. * @return bool */ public static function apply( $key ) { $all = self::all(); if ( empty( $all[ $key ]['brand'] ) ) { return false; } $update = array( 'brand' => array_merge( C7DBT_Settings::default_brand(), $all[ $key ]['brand'] ), 'branding_enabled' => 1, 'brand_scope' => array( 'buttons' => 1, 'text' => 1, 'forms' => 1, 'cart' => 1, ), ); if ( ! empty( $all[ $key ]['font_heading_key'] ) ) { $update['font_heading_key'] = $all[ $key ]['font_heading_key']; } if ( ! empty( $all[ $key ]['font_body_key'] ) ) { $update['font_body_key'] = $all[ $key ]['font_body_key']; } C7DBT_Settings::update( $update ); return true; } }